fix: 修复任务完成后的休眠选项不可用问题

fix https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/1133
This commit is contained in:
MistEO
2022-07-13 21:45:55 +08:00
parent d424861761
commit e6f476e4db

View File

@@ -388,7 +388,6 @@ namespace MeoAsstGui
private int _inverseSelectedWidth = 95;
public int InverseSelectedWidth
{
get
@@ -446,6 +445,7 @@ namespace MeoAsstGui
}
private string _inverseMenuText = Convert.ToBoolean(ViewStatusStorage.Get("MainFunction.InverseMode", bool.FalseString)) ? "清空" : "反选";
public string InverseMenuText
{
get
@@ -924,12 +924,9 @@ namespace MeoAsstGui
break;
case ActionType.Hibernate:
System.Diagnostics.Process.Start("shutdown.exe", "-h -t 60");
var hibernateResult = _windowManager.ShowMessageBox("已刷完,即将休眠,是否取消?", "提示", MessageBoxButton.OK, MessageBoxImage.Question);
if (hibernateResult == MessageBoxResult.OK)
{
System.Diagnostics.Process.Start("shutdown.exe", "-a");
}
AddLog("已刷完,即将休眠", "DarkRed");
// 休眠不能加时间参数https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/1133
System.Diagnostics.Process.Start("shutdown.exe", "-h");
break;
default: