fix: 修复托盘设置不保存的问题

https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/1001
This commit is contained in:
MistEO
2022-06-29 22:04:49 +08:00
parent 2e960ce4ee
commit dc8d8e89e4

View File

@@ -600,6 +600,7 @@ namespace MeoAsstGui
ViewStatusStorage.Set("Timer.Timer5", value.ToString());
}
}
public bool Timer6
{
get { return _timer6; }
@@ -609,6 +610,7 @@ namespace MeoAsstGui
ViewStatusStorage.Set("Timer.Timer6", value.ToString());
}
}
public bool Timer7
{
get { return _timer7; }
@@ -618,6 +620,7 @@ namespace MeoAsstGui
ViewStatusStorage.Set("Timer.Timer7", value.ToString());
}
}
public bool Timer8
{
get { return _timer8; }
@@ -1362,7 +1365,7 @@ namespace MeoAsstGui
set
{
SetAndNotify(ref _usetray, value);
ViewStatusStorage.Set("UseTray", value.ToString());
ViewStatusStorage.Set("Tray.UseTray", value.ToString());
var trayObj = _container.Get<TrayIcon>();
trayObj.SetVisible(value);
@@ -1381,7 +1384,7 @@ namespace MeoAsstGui
set
{
SetAndNotify(ref _minimizeToTray, value);
ViewStatusStorage.Set("MinimizeToTray", value.ToString());
ViewStatusStorage.Set("Tray.MinimizeToTray", value.ToString());
var trayObj = _container.Get<TrayIcon>();
trayObj.SetMinimizeToTaskbar(value);
}