Mremoteng: 'Switch to notification panel' feature does not always switch

Created on 28 Jul 2018  路  2Comments  路  Source: mRemoteNG/mRemoteNG

The Switch to Notifications panel on feature in Options -> Notifications does not always switch to the notifications panel when messages are received.

Expected Behavior


Current Behavior


Steps to Reproduce (for bugs)


  1. Ensure all Tools -> Options -> Notifications -> Switch to Notifications panel on check boxes are checked.
  2. Perform actions around the app (start a connection, save the connections file, etc)
  3. The first several messages seem to switch focus to the notification window, but after that it stops working. Threading/ordering issue?

Context


Your Environment

  • Version used: 1.76.4 (develop branch 00b7b12)
Bug

All 2 comments

It seems that disconnecting a connection consistently causes the message focusing to stop working.

I've tried adding some lock statements in MessageFocusDecorator.cs but that only fixes a few cases. Somehow the timer we are using gets stuck in the 'on' state but does not raise any events.

It was definitely a threading thing, but I'm still not sure exactly what was going on. I replaced the complicated implementation using Timer with a simple Task async call. Works like a charm.

There is one caveat though - I still can't get the notifications form to be shown when its panel is set to auto hide. The new message will be highlighted correctly, but the auto-hidden form doesn't pop up/out like it should when a message is received. I suspect this is just some DockPanelSuite thing that I'm not doing correctly.

This line should show the notification panel (and it does for non-auto hidden forms).
https://github.com/mRemoteNG/mRemoteNG/blob/release/v1.76/mRemoteV1/Messages/WriterDecorators/MessageFocusDecorator.cs#L75

@kmscode You may know DPS better - any ideas?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pfjason picture pfjason  路  4Comments

seth-c-stenzel picture seth-c-stenzel  路  4Comments

PCNerd2001 picture PCNerd2001  路  3Comments

LIyoai picture LIyoai  路  4Comments

jelbo picture jelbo  路  4Comments