2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-04-05 17:39:39 -04:00

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:
F K 2022-12-04 09:11:30 -05:00 committed by GitHub
parent 3a9b4da2b7
commit 9b34d50d32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,10 +25,10 @@ namespace Observatory.UI.Views
this.guid = guid;
InitializeComponent();
SystemDecorations = SystemDecorations.None;
ShowActivated = false;
ShowInTaskbar = false;
MakeClickThrough(); //Platform specific, currently windows only.
this.DataContextChanged += NotificationView_DataContextChanged;
scale = Properties.Core.Default.NativeNotifyScale / 100.0;