mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 04:37:30 +02:00
Fix #606
This commit is contained in:
@@ -85,8 +85,7 @@ namespace Wox
|
||||
// but if sessionending is not called, exit won't be called when log off / shutdown
|
||||
if (!_disposed)
|
||||
{
|
||||
var vm = (MainViewModel)Current.MainWindow.DataContext;
|
||||
vm.Save();
|
||||
((MainViewModel)Current.MainWindow?.DataContext)?.Save();
|
||||
_disposed = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user