mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
Save when exit
1. fix image cache 2. fix save when exit since destructor won't be called 3. fix #583 #582 (partially) #581 (partially) #580
This commit is contained in:
@@ -18,7 +18,7 @@ using Wox.Storage;
|
||||
|
||||
namespace Wox.ViewModel
|
||||
{
|
||||
public class MainViewModel : BaseViewModel
|
||||
public class MainViewModel : BaseViewModel, ISavable
|
||||
{
|
||||
#region Private Fields
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace Wox.ViewModel
|
||||
InitializeKeyCommands();
|
||||
}
|
||||
|
||||
~MainViewModel()
|
||||
public void Save()
|
||||
{
|
||||
_settingsStorage.Save();
|
||||
_queryHistoryStorage.Save();
|
||||
|
||||
Reference in New Issue
Block a user