mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 10:00:44 +08:00
fix: update i18n, set ReconnectTimes to 20
This commit is contained in:
@@ -376,7 +376,7 @@ std::optional<std::vector<uchar>> 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;
|
||||
|
||||
@@ -150,6 +150,8 @@
|
||||
<system:String x:Key="ConnectionAddress">Connection address</system:String>
|
||||
<system:String x:Key="ConnectionAddressTip">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</system:String>
|
||||
<system:String x:Key="ConnectionPreset">Connection Preset</system:String>
|
||||
<system:String x:Key="RetryOnDisconnected">Auto restart emulator when adb reconnection fails</system:String>
|
||||
<system:String x:Key="RetryOnDisconnectedTip">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</system:String>
|
||||
<!-- Settings -->
|
||||
|
||||
<!-- Farming -->
|
||||
|
||||
@@ -150,6 +150,8 @@
|
||||
<system:String x:Key="ConnectionAddress">接続先アドレス</system:String>
|
||||
<system:String x:Key="ConnectionAddressTip">初めて使うと自動で記入されますので、問題があれば手動で修正してみてください</system:String>
|
||||
<system:String x:Key="ConnectionPreset">接続構成</system:String>
|
||||
<system:String x:Key="RetryOnDisconnected">adb再接続失敗時のエミュレータの自動再起動</system:String>
|
||||
<system:String x:Key="RetryOnDisconnectedTip">再接続に20回失敗した後、エミュレータを再起動してみてください,バックグラウンドのタイムドタスクを使用し、終了時にエミュレータを終了させるタスクを設定する場合は、必ずチェックを入れること</system:String>
|
||||
<!-- 設定 -->
|
||||
|
||||
<!-- スタート -->
|
||||
|
||||
@@ -150,6 +150,8 @@
|
||||
<system:String x:Key="ConnectionAddress">연결 주소</system:String>
|
||||
<system:String x:Key="ConnectionAddressTip">처음 사용할 때는 자동으로 작성되며, 문제가 있으면 수동으로 수정하십시오</system:String>
|
||||
<system:String x:Key="ConnectionPreset">연결 사전 설정</system:String>
|
||||
<system:String x:Key="RetryOnDisconnected">adb 재연결이 실패하면 자동으로 에뮬레이터를 다시 시작합니다</system:String>
|
||||
<system:String x:Key="RetryOnDisconnectedTip">20번의 재연결 실패 후 에뮬레이터를 다시 시작하십시오, 백그라운드 시간 지정 작업을 사용하고 작업이 완료되면 시뮬레이터를 닫도록 설정하려면 다음을 선택해야 합니다</system:String>
|
||||
<!-- 설정 -->
|
||||
|
||||
<!-- 메인 화면 -->
|
||||
|
||||
@@ -150,6 +150,8 @@
|
||||
<system:String x:Key="ConnectionAddress">🍻🕺🍻</system:String>
|
||||
<system:String x:Key="ConnectionAddressTip">🍷🍷🍷🍺🍺🍻💃🍻🍺🍺🍷🍻🕺🍻🕺💃🕺🍸💃🍸🍷🍷🍺🕺🍸</system:String>
|
||||
<system:String x:Key="ConnectionPreset">🍸🍷🍻</system:String>
|
||||
<system:String x:Key="RetryOnDisconnected">🍺🍷🍺🍸🍷🍻🕺🕺🍺🍷🍻🍺🍸🍻🍸🍺</system:String>
|
||||
<system:String x:Key="RetryOnDisconnectedTip">🍻🍺🍸🍻🍷🍻🍷🍻🍷🍻🍻🍸🕺🍺🍺🍸🍺🍺🍺🍺🍸🕺🍻🍷🍸🕺🍷🕺🕺🍻🍷🍻🍺🕺🍺🍻🍷🍷💃💃🍺🍸</system:String>
|
||||
<!-- 设置 -->
|
||||
|
||||
<!-- 一键长草 -->
|
||||
|
||||
@@ -150,7 +150,8 @@
|
||||
<system:String x:Key="ConnectionAddress">连接地址</system:String>
|
||||
<system:String x:Key="ConnectionAddressTip">第一次使用会自动填写,若遇到问题可尝试手动修改</system:String>
|
||||
<system:String x:Key="ConnectionPreset">连接配置</system:String>
|
||||
<system:String x:Key="RetryOnDisconnected">ADB重连失败时尝试重启模拟器后再次重连(后台使用定时任务挂机且设置任务完成自动关闭模拟器必须勾选该项)</system:String>
|
||||
<system:String x:Key="RetryOnDisconnected">adb重连失败时自动重启模拟器</system:String>
|
||||
<system:String x:Key="RetryOnDisconnectedTip">重连失败20次后尝试重启模拟器,使用后台定时任务且设置任务完成关闭模拟器时必须勾选</system:String>
|
||||
<!-- 设置 -->
|
||||
|
||||
<!-- 一键长草 -->
|
||||
|
||||
@@ -150,6 +150,8 @@
|
||||
<system:String x:Key="ConnectionAddress">連接地址</system:String>
|
||||
<system:String x:Key="ConnectionAddressTip">第一次使用會自動填寫,若遇到問題可嘗試手動修改</system:String>
|
||||
<system:String x:Key="ConnectionPreset">連接配置</system:String>
|
||||
<system:String x:Key="RetryOnDisconnected">adb重連失敗時自動重啟模擬器</system:String>
|
||||
<system:String x:Key="RetryOnDisconnectedTip">重連失敗20次後嘗試重啟模擬器,使用後台定時任務且設置任務完成關閉模擬器時必須勾選</system:String>
|
||||
<!-- 設定 -->
|
||||
|
||||
<!-- 一鍵長草 -->
|
||||
|
||||
@@ -99,8 +99,8 @@
|
||||
Margin="10,0,0,0"
|
||||
VerticalAlignment="Center"
|
||||
IsChecked="{Binding RetryOnDisconnected}"
|
||||
HorizontalAlignment="Left">
|
||||
<TextBlock TextWrapping="Wrap" Text="{DynamicResource RetryOnDisconnected}" />
|
||||
</CheckBox>
|
||||
Content="{DynamicResource RetryOnDisconnected}"
|
||||
ToolTip="{DynamicResource RetryOnDisconnectedTip}"
|
||||
HorizontalAlignment="Left" />
|
||||
</Grid>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user