mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
fix: 修复托盘设置不保存的问题
https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/1001
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user