mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 20:57:22 +02:00
Misc
This commit is contained in:
@@ -63,7 +63,6 @@ namespace Wox
|
||||
|
||||
private void OnActivated(object sender, EventArgs e)
|
||||
{
|
||||
// todo happlebao add option in gui
|
||||
if (_settings.AutoUpdates)
|
||||
{
|
||||
Updater.UpdateApp();
|
||||
@@ -109,7 +108,7 @@ namespace Wox
|
||||
// but if sessionending is not called, exit won't be called when log off / shutdown
|
||||
if (!_disposed)
|
||||
{
|
||||
((MainViewModel)Current.MainWindow?.DataContext)?.Save();
|
||||
Current.Dispatcher.Invoke(() => ((MainViewModel) Current.MainWindow?.DataContext)?.Save());
|
||||
_disposed = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user