feat: 添加模拟器启动等待结束提示

This commit is contained in:
uye
2023-04-27 01:56:16 +08:00
parent 1860efba7b
commit a18677a683
6 changed files with 9 additions and 0 deletions

View File

@@ -193,6 +193,7 @@
<system:String x:Key="OpenEmulatorAfterLaunch">Startup Emulator after launched</system:String>
<system:String x:Key="MinimizingStartup">Minimizing the startup Emulator</system:String>
<system:String x:Key="WaitForEmulator">Delay time (s)</system:String>
<system:String x:Key="WaitForEmulatorFinish">End of wait</system:String>
<system:String x:Key="EmulatorPath">Emulator exec path</system:String>
<system:String x:Key="Select">Select</system:String>
<system:String x:Key="ForcedReplaceADB">Forced Replace ADB File</system:String>

View File

@@ -191,6 +191,7 @@
<system:String x:Key="OpenEmulatorAfterLaunch">起動時にエミュレータ自動起動</system:String>
<system:String x:Key="MinimizingStartup">エミュレーターの起動を最小化する</system:String>
<system:String x:Key="WaitForEmulator">エミュレータを待つ時間(秒)</system:String>
<system:String x:Key="WaitForEmulatorFinish">待ち時間は終わりました</system:String>
<system:String x:Key="EmulatorPath">エミュレータパス</system:String>
<system:String x:Key="Select">選択</system:String>
<system:String x:Key="ForcedReplaceADB">ADB強制置き換え</system:String>

View File

@@ -185,6 +185,7 @@
<system:String x:Key="OpenEmulatorAfterLaunch">MAA 실행 후 에뮬레이터를 실행</system:String>
<system:String x:Key="MinimizingStartup">시작 시뮬레이터 최소화</system:String>
<system:String x:Key="WaitForEmulator">에뮬레이터 실행 대기 (초)</system:String>
<system:String x:Key="WaitForEmulatorFinish">기다림은 끝났다</system:String>
<system:String x:Key="EmulatorPath">에뮬레이터 경로</system:String>
<system:String x:Key="Select">선택</system:String>
<system:String x:Key="ForcedReplaceADB">ADB 강제 교체</system:String>

View File

@@ -195,6 +195,7 @@
<system:String x:Key="OpenEmulatorAfterLaunch">启动MAA后自动开启模拟器</system:String>
<system:String x:Key="MinimizingStartup">最小化启动模拟器</system:String>
<system:String x:Key="WaitForEmulator">等待模拟器启动时间(秒)</system:String>
<system:String x:Key="WaitForEmulatorFinish">等待结束</system:String>
<system:String x:Key="EmulatorPath">模拟器路径</system:String>
<system:String x:Key="Select">选择</system:String>
<system:String x:Key="ForcedReplaceADB">强制替换 ADB</system:String>

View File

@@ -148,6 +148,7 @@
<system:String x:Key="OpenEmulatorAfterLaunch">啟動後自動開啟模擬器</system:String>
<system:String x:Key="MinimizingStartup">最小化啟動模擬器</system:String>
<system:String x:Key="WaitForEmulator">等待模擬器啟動時間(秒)</system:String>
<system:String x:Key="WaitForEmulatorFinish">等待結束</system:String>
<system:String x:Key="EmulatorPath">模擬器路徑</system:String>
<system:String x:Key="Select">選擇</system:String>
<system:String x:Key="AdditionCommand">附加命令</system:String>

View File

@@ -705,6 +705,10 @@ namespace MaaWpfGui.ViewModels.UI
Thread.Sleep(1000);
}
Execute.OnUIThread(() => Instances.TaskQueueViewModel.AddLog(
LocalizationHelper.GetString("WaitForEmulatorFinish")));
AsstProxy.AsstLog("The wait is over");
// 重置按钮状态,不影响后续判断
Instances.TaskQueueViewModel.Idle = true;
}