Disable ShowActivated on notifications to avoid focus stealing (#98)
The recently updated avalonia seemed to change behavior in a way that caused notifications to steal focus from the game (often at at inopportune times). Not all users experienced this.
This commit is contained in:
parent
3a9b4da2b7
commit
9b34d50d32
1 changed files with 1 additions and 1 deletions
|
|
@ -25,10 +25,10 @@ namespace Observatory.UI.Views
|
||||||
this.guid = guid;
|
this.guid = guid;
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
SystemDecorations = SystemDecorations.None;
|
SystemDecorations = SystemDecorations.None;
|
||||||
|
ShowActivated = false;
|
||||||
ShowInTaskbar = false;
|
ShowInTaskbar = false;
|
||||||
MakeClickThrough(); //Platform specific, currently windows only.
|
MakeClickThrough(); //Platform specific, currently windows only.
|
||||||
|
|
||||||
|
|
||||||
this.DataContextChanged += NotificationView_DataContextChanged;
|
this.DataContextChanged += NotificationView_DataContextChanged;
|
||||||
scale = Properties.Core.Default.NativeNotifyScale / 100.0;
|
scale = Properties.Core.Default.NativeNotifyScale / 100.0;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue