mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 10:57:45 +08:00
feat: 关闭模拟器后重置连接状态,减少无意义重连尝试
This commit is contained in:
@@ -427,6 +427,13 @@ namespace MaaWpfGui.Main
|
||||
}
|
||||
|
||||
private bool connected = false;
|
||||
|
||||
public bool Connected
|
||||
{
|
||||
get => connected;
|
||||
set => connected = value;
|
||||
}
|
||||
|
||||
private string connectedAdb;
|
||||
private string connectedAddress;
|
||||
|
||||
|
||||
@@ -1070,6 +1070,7 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
public bool KillEmulatorModeSwitcher()
|
||||
{
|
||||
string emulatorMode = Instances.SettingsViewModel.ConnectConfig;
|
||||
Instances.AsstProxy.Connected = false;
|
||||
return emulatorMode switch
|
||||
{
|
||||
"Nox" => KillEmulatorNox(),
|
||||
|
||||
Reference in New Issue
Block a user