mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 02:23:01 +08:00
fix: 修复任务完成后的休眠选项不可用问题
fix https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/1133
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user