This commit is contained in:
bao-qian
2016-05-15 17:19:33 +01:00
parent cf9c41f437
commit 1517ae3fc9
3 changed files with 6 additions and 7 deletions

View File

@@ -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;
}
}