mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-06-23 23:00:23 -07:00
Fix race condition with NotifyIcon disposal (#412)
This commit is contained in:
parent
cc39ee6e8a
commit
1779056655
@ -317,7 +317,7 @@ namespace Bloxstrap
|
|||||||
// this ordering is very important as all wpf windows are shown as modal dialogs, mess it up and you'll end up blocking input to one of them
|
// this ordering is very important as all wpf windows are shown as modal dialogs, mess it up and you'll end up blocking input to one of them
|
||||||
dialog?.ShowBootstrapper();
|
dialog?.ShowBootstrapper();
|
||||||
|
|
||||||
if (Settings.Prop.EnableActivityTracking)
|
if (!IsNoLaunch && Settings.Prop.EnableActivityTracking)
|
||||||
NotifyIcon?.InitializeContextMenu();
|
NotifyIcon?.InitializeContextMenu();
|
||||||
|
|
||||||
bootstrapperTask.Wait();
|
bootstrapperTask.Wait();
|
||||||
|
@ -134,7 +134,7 @@ namespace Bloxstrap.UI
|
|||||||
App.Logger.WriteLine($"[NotifyIconWrapper::Dispose] Disposing NotifyIcon");
|
App.Logger.WriteLine($"[NotifyIconWrapper::Dispose] Disposing NotifyIcon");
|
||||||
|
|
||||||
_menuContainer?.Dispatcher.Invoke(_menuContainer.Close);
|
_menuContainer?.Dispatcher.Invoke(_menuContainer.Close);
|
||||||
_notifyIcon.Dispose();
|
_notifyIcon?.Dispose();
|
||||||
|
|
||||||
_disposed = true;
|
_disposed = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user