diff --git a/src/MeoAssistant/Controller.cpp b/src/MeoAssistant/Controller.cpp index a8b8e9d6c1..e8ebee4534 100644 --- a/src/MeoAssistant/Controller.cpp +++ b/src/MeoAssistant/Controller.cpp @@ -376,7 +376,7 @@ std::optional> asst::Controller::call_command(const std::stri { "cmd", cmd }, } }, }; - constexpr static int ReconnectTimes = 5; + constexpr static int ReconnectTimes = 20; for (int i = 0; i < ReconnectTimes; ++i) { if (need_exit()) { break; diff --git a/src/MeoAsstGui/Resources/Localizations/en-us.xaml b/src/MeoAsstGui/Resources/Localizations/en-us.xaml index df720aa807..b7c8e09b55 100644 --- a/src/MeoAsstGui/Resources/Localizations/en-us.xaml +++ b/src/MeoAsstGui/Resources/Localizations/en-us.xaml @@ -150,6 +150,8 @@ Connection address It will be filled in automatically when you use it for the first time. If you encounter any problems, you can try to manually modify it Connection Preset + Auto restart emulator when adb reconnection fails + Try restarting the emulator after 20 failed reconnect attempts, Must be checked when using a background timed task and setting the task to close the emulator when finished diff --git a/src/MeoAsstGui/Resources/Localizations/ja-jp.xaml b/src/MeoAsstGui/Resources/Localizations/ja-jp.xaml index 25b243c877..bb1f8cccef 100644 --- a/src/MeoAsstGui/Resources/Localizations/ja-jp.xaml +++ b/src/MeoAsstGui/Resources/Localizations/ja-jp.xaml @@ -150,6 +150,8 @@ 接続先アドレス 初めて使うと自動で記入されますので、問題があれば手動で修正してみてください 接続構成 + adb再接続失敗時のエミュレータの自動再起動 + 再接続に20回失敗した後、エミュレータを再起動してみてください,バックグラウンドのタイムドタスクを使用し、終了時にエミュレータを終了させるタスクを設定する場合は、必ずチェックを入れること diff --git a/src/MeoAsstGui/Resources/Localizations/ko-kr.xaml b/src/MeoAsstGui/Resources/Localizations/ko-kr.xaml index 94c8d441e8..69e89daed0 100644 --- a/src/MeoAsstGui/Resources/Localizations/ko-kr.xaml +++ b/src/MeoAsstGui/Resources/Localizations/ko-kr.xaml @@ -150,6 +150,8 @@ 연결 주소 처음 사용할 때는 자동으로 작성되며, 문제가 있으면 수동으로 수정하십시오 연결 사전 설정 + adb 재연결이 실패하면 자동으로 에뮬레이터를 다시 시작합니다 + 20번의 재연결 실패 후 에뮬레이터를 다시 시작하십시오, 백그라운드 시간 지정 작업을 사용하고 작업이 완료되면 시뮬레이터를 닫도록 설정하려면 다음을 선택해야 합니다 diff --git a/src/MeoAsstGui/Resources/Localizations/pallas.xaml b/src/MeoAsstGui/Resources/Localizations/pallas.xaml index 7e975f070e..09f8379dc7 100644 --- a/src/MeoAsstGui/Resources/Localizations/pallas.xaml +++ b/src/MeoAsstGui/Resources/Localizations/pallas.xaml @@ -150,6 +150,8 @@ 🍻🕺🍻 🍷🍷🍷🍺🍺🍻💃🍻🍺🍺🍷🍻🕺🍻🕺💃🕺🍸💃🍸🍷🍷🍺🕺🍸 🍸🍷🍻 + 🍺🍷🍺🍸🍷🍻🕺🕺🍺🍷🍻🍺🍸🍻🍸🍺 + 🍻🍺🍸🍻🍷🍻🍷🍻🍷🍻🍻🍸🕺🍺🍺🍸🍺🍺🍺🍺🍸🕺🍻🍷🍸🕺🍷🕺🕺🍻🍷🍻🍺🕺🍺🍻🍷🍷💃💃🍺🍸 diff --git a/src/MeoAsstGui/Resources/Localizations/zh-cn.xaml b/src/MeoAsstGui/Resources/Localizations/zh-cn.xaml index 2276ef39c6..70b7841626 100644 --- a/src/MeoAsstGui/Resources/Localizations/zh-cn.xaml +++ b/src/MeoAsstGui/Resources/Localizations/zh-cn.xaml @@ -150,7 +150,8 @@ 连接地址 第一次使用会自动填写,若遇到问题可尝试手动修改 连接配置 - ADB重连失败时尝试重启模拟器后再次重连(后台使用定时任务挂机且设置任务完成自动关闭模拟器必须勾选该项) + adb重连失败时自动重启模拟器 + 重连失败20次后尝试重启模拟器,使用后台定时任务且设置任务完成关闭模拟器时必须勾选 diff --git a/src/MeoAsstGui/Resources/Localizations/zh-tw.xaml b/src/MeoAsstGui/Resources/Localizations/zh-tw.xaml index 2f87b01f2b..6d5a71224a 100644 --- a/src/MeoAsstGui/Resources/Localizations/zh-tw.xaml +++ b/src/MeoAsstGui/Resources/Localizations/zh-tw.xaml @@ -150,6 +150,8 @@ 連接地址 第一次使用會自動填寫,若遇到問題可嘗試手動修改 連接配置 + adb重連失敗時自動重啟模擬器 + 重連失敗20次後嘗試重啟模擬器,使用後台定時任務且設置任務完成關閉模擬器時必須勾選 diff --git a/src/MeoAsstGui/UserControl/ConnectSettingsUserControl.xaml b/src/MeoAsstGui/UserControl/ConnectSettingsUserControl.xaml index e6a419e884..8a9700b3af 100644 --- a/src/MeoAsstGui/UserControl/ConnectSettingsUserControl.xaml +++ b/src/MeoAsstGui/UserControl/ConnectSettingsUserControl.xaml @@ -99,8 +99,8 @@ Margin="10,0,0,0" VerticalAlignment="Center" IsChecked="{Binding RetryOnDisconnected}" - HorizontalAlignment="Left"> - - + Content="{DynamicResource RetryOnDisconnected}" + ToolTip="{DynamicResource RetryOnDisconnectedTip}" + HorizontalAlignment="Left" /> \ No newline at end of file