mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-01 01:29:02 +08:00
refactor remote_restarting_tip
This commit is contained in:
parent
9b21182886
commit
ab2ac0755e
@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Restart Remote Device", "重启远程电脑"),
|
("Restart Remote Device", "重启远程电脑"),
|
||||||
("Are you sure you want to restart", "确定要重启"),
|
("Are you sure you want to restart", "确定要重启"),
|
||||||
("Restarting Remote Device", "正在重启远程设备"),
|
("Restarting Remote Device", "正在重启远程设备"),
|
||||||
("Remote device is restarting, please close this message box and reconnect with permanent password after a while", "远程设备正在重启, 请关闭当前提示框, 并在一段时间后使用永久密码重新连接"),
|
("remote_restarting_tip", "远程设备正在重启, 请关闭当前提示框, 并在一段时间后使用永久密码重新连接"),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Restart Remote Device", ""),
|
("Restart Remote Device", ""),
|
||||||
("Are you sure you want to restart", ""),
|
("Are you sure you want to restart", ""),
|
||||||
("Restarting Remote Device", ""),
|
("Restarting Remote Device", ""),
|
||||||
("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""),
|
("remote_restarting_tip", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Restart Remote Device", ""),
|
("Restart Remote Device", ""),
|
||||||
("Are you sure you want to restart", ""),
|
("Are you sure you want to restart", ""),
|
||||||
("Restarting Remote Device", ""),
|
("Restarting Remote Device", ""),
|
||||||
("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""),
|
("remote_restarting_tip", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Restart Remote Device", ""),
|
("Restart Remote Device", ""),
|
||||||
("Are you sure you want to restart", ""),
|
("Are you sure you want to restart", ""),
|
||||||
("Restarting Remote Device", ""),
|
("Restarting Remote Device", ""),
|
||||||
("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""),
|
("remote_restarting_tip", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -28,5 +28,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("doc_fix_wayland", "https://rustdesk.com/docs/en/manual/linux/#x11-required"),
|
("doc_fix_wayland", "https://rustdesk.com/docs/en/manual/linux/#x11-required"),
|
||||||
("server_not_support", "Not yet supported by the server"),
|
("server_not_support", "Not yet supported by the server"),
|
||||||
("android_open_battery_optimizations_tip", "If you want to disable this feature, please go to the next RustDesk application settings page, find and enter [Battery], Uncheck [Unrestricted]"),
|
("android_open_battery_optimizations_tip", "If you want to disable this feature, please go to the next RustDesk application settings page, find and enter [Battery], Uncheck [Unrestricted]"),
|
||||||
|
("remote_restarting_tip", "Remote device is restarting, please close this message box and reconnect with permanent password after a while"),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Restart Remote Device", ""),
|
("Restart Remote Device", ""),
|
||||||
("Are you sure you want to restart", ""),
|
("Are you sure you want to restart", ""),
|
||||||
("Restarting Remote Device", ""),
|
("Restarting Remote Device", ""),
|
||||||
("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""),
|
("remote_restarting_tip", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Restart Remote Device", "Reiniciar dispositivo"),
|
("Restart Remote Device", "Reiniciar dispositivo"),
|
||||||
("Are you sure you want to restart", "Esta Seguro que desea reiniciar?"),
|
("Are you sure you want to restart", "Esta Seguro que desea reiniciar?"),
|
||||||
("Restarting Remote Device", "Reiniciando dispositivo remoto"),
|
("Restarting Remote Device", "Reiniciando dispositivo remoto"),
|
||||||
("Remote device is restarting, please close this message box and reconnect with permanent password after a while", "Dispositivo remoto reiniciando, favor de cerrar este mensaje y reconectarse con la contraseña permamente despues de un momento."),
|
("remote_restarting_tip", "Dispositivo remoto reiniciando, favor de cerrar este mensaje y reconectarse con la contraseña permamente despues de un momento."),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Restart Remote Device", ""),
|
("Restart Remote Device", ""),
|
||||||
("Are you sure you want to restart", ""),
|
("Are you sure you want to restart", ""),
|
||||||
("Restarting Remote Device", ""),
|
("Restarting Remote Device", ""),
|
||||||
("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""),
|
("remote_restarting_tip", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Restart Remote Device", ""),
|
("Restart Remote Device", ""),
|
||||||
("Are you sure you want to restart", ""),
|
("Are you sure you want to restart", ""),
|
||||||
("Restarting Remote Device", ""),
|
("Restarting Remote Device", ""),
|
||||||
("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""),
|
("remote_restarting_tip", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Restart Remote Device", ""),
|
("Restart Remote Device", ""),
|
||||||
("Are you sure you want to restart", ""),
|
("Are you sure you want to restart", ""),
|
||||||
("Restarting Remote Device", ""),
|
("Restarting Remote Device", ""),
|
||||||
("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""),
|
("remote_restarting_tip", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Restart Remote Device", ""),
|
("Restart Remote Device", ""),
|
||||||
("Are you sure you want to restart", ""),
|
("Are you sure you want to restart", ""),
|
||||||
("Restarting Remote Device", ""),
|
("Restarting Remote Device", ""),
|
||||||
("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""),
|
("remote_restarting_tip", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Restart Remote Device", ""),
|
("Restart Remote Device", ""),
|
||||||
("Are you sure you want to restart", ""),
|
("Are you sure you want to restart", ""),
|
||||||
("Restarting Remote Device", ""),
|
("Restarting Remote Device", ""),
|
||||||
("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""),
|
("remote_restarting_tip", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Restart Remote Device", ""),
|
("Restart Remote Device", ""),
|
||||||
("Are you sure you want to restart", ""),
|
("Are you sure you want to restart", ""),
|
||||||
("Restarting Remote Device", ""),
|
("Restarting Remote Device", ""),
|
||||||
("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""),
|
("remote_restarting_tip", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Restart Remote Device", ""),
|
("Restart Remote Device", ""),
|
||||||
("Are you sure you want to restart", ""),
|
("Are you sure you want to restart", ""),
|
||||||
("Restarting Remote Device", ""),
|
("Restarting Remote Device", ""),
|
||||||
("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""),
|
("remote_restarting_tip", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Restart Remote Device", ""),
|
("Restart Remote Device", ""),
|
||||||
("Are you sure you want to restart", ""),
|
("Are you sure you want to restart", ""),
|
||||||
("Restarting Remote Device", ""),
|
("Restarting Remote Device", ""),
|
||||||
("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""),
|
("remote_restarting_tip", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Restart Remote Device", ""),
|
("Restart Remote Device", ""),
|
||||||
("Are you sure you want to restart", ""),
|
("Are you sure you want to restart", ""),
|
||||||
("Restarting Remote Device", ""),
|
("Restarting Remote Device", ""),
|
||||||
("Remote device is restarting, please close this message box and reconnect with permanent password after a while", ""),
|
("remote_restarting_tip", ""),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -298,6 +298,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Restart Remote Device", "重啓遠程電腦"),
|
("Restart Remote Device", "重啓遠程電腦"),
|
||||||
("Are you sure you want to restart", "确定要重启"),
|
("Are you sure you want to restart", "确定要重启"),
|
||||||
("Restarting Remote Device", "正在重啓遠程設備"),
|
("Restarting Remote Device", "正在重啓遠程設備"),
|
||||||
("Remote device is restarting, please close this message box and reconnect with permanent password after a while", "遠程設備正在重啓,請關閉當前提示框,並在一段時間後使用永久密碼重新連接"),
|
("remote_restarting_tip", "遠程設備正在重啓,請關閉當前提示框,並在一段時間後使用永久密碼重新連接"),
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -1503,7 +1503,7 @@ impl Remote {
|
|||||||
} else {
|
} else {
|
||||||
if self.handler.is_restarting_remote_device() {
|
if self.handler.is_restarting_remote_device() {
|
||||||
log::info!("Restart remote device");
|
log::info!("Restart remote device");
|
||||||
self.handler.msgbox("restarting", "Restarting Remote Device", "Remote device is restarting, please close this message box and reconnect with permanent password after a while");
|
self.handler.msgbox("restarting", "Restarting Remote Device", "remote_restarting_tip");
|
||||||
} else {
|
} else {
|
||||||
log::info!("Reset by the peer");
|
log::info!("Reset by the peer");
|
||||||
self.handler.msgbox("error", "Connection Error", "Reset by the peer");
|
self.handler.msgbox("error", "Connection Error", "Reset by the peer");
|
||||||
|
Loading…
Reference in New Issue
Block a user