Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

remove calling refreshCurrentUser when connect status become ready (#8849)

21pages7e8d3bd2acb2
diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart
index eba626343..b2d6515b7 100644
--- a/flutter/lib/common.dart
+++ b/flutter/lib/common.dart
@@ -3490,3 +3490,20 @@ disableWindowMovable(int? windowId) {
WindowController.fromWindowId(windowId).setMovable(false);
}
}
+
+Widget netWorkErrorWidget() {
+ return Center(
+ child: Column(
+ mainAxisAlignment: MainAxisAlignment.center,
+ crossAxisAlignment: CrossAxisAlignment.center,
+ children: [
+ Text(translate("network_error_tip")),
+ ElevatedButton(
+ onPressed: gFFI.userModel.refreshCurrentUser,
+ child: Text(translate("Retry")))
+ .marginSymmetric(vertical: 16),
+ Text(gFFI.userModel.networkError.value,
+ style: TextStyle(fontSize: 11, color: Colors.red)),
+ ],
+ ));
+}
diff --git a/flutter/lib/common/widgets/address_book.dart b/flutter/lib/common/widgets/address_book.dart
index 52b2e3d62..67b262cd1 100644
--- a/flutter/lib/common/widgets/address_book.dart
+++ b/flutter/lib/common/widgets/address_book.dart
@@ -41,6 +41,8 @@ class _AddressBookState extends State<AddressBook> {
return Center(
child: ElevatedButton(
onPressed: loginDialog, child: Text(translate("Login"))));
+ } else if (gFFI.userModel.networkError.isNotEmpty) {
+ return netWorkErrorWidget();
} else {
return Column(
children: [
diff --git a/flutter/lib/common/widgets/my_group.dart b/flutter/lib/common/widgets/my_group.dart
index e139ce700..0d9cc007c 100644
--- a/flutter/lib/common/widgets/my_group.dart
+++ b/flutter/lib/common/widgets/my_group.dart
@@ -30,6 +30,8 @@ class _MyGroupState extends State<MyGroup> {
return Center(
child: ElevatedButton(
onPressed: loginDialog, child: Text(translate("Login"))));
+ } else if (gFFI.userModel.networkError.isNotEmpty) {
+ return netWorkErrorWidget();
} else if (gFFI.groupModel.groupLoading.value && gFFI.groupModel.emtpy) {
return const Center(
child: CircularProgressIndicator(),
diff --git a/flutter/lib/desktop/pages/connection_page.dart b/flutter/lib/desktop/pages/connection_page.dart
index 5b77c431b..09ec3418b 100644
--- a/flutter/lib/desktop/pages/connection_page.dart
+++ b/flutter/lib/desktop/pages/connection_page.dart
@@ -34,7 +34,6 @@ class _OnlineStatusWidgetState extends State<OnlineStatusWidget> {
final _svcStopped = Get.find<RxBool>(tag: 'stop-service');
final _svcIsUsingPublicServer = true.obs;
Timer? _updateTimer;
- final DateTime _appStartTime = DateTime.now();
double get em => 14.0;
double? get height => bind.isIncomingOnly() ? null : em * 3;
@@ -170,17 +169,12 @@ class _OnlineStatusWidgetState extends State<OnlineStatusWidget> {
final status =
jsonDecode(await bind.mainGetConnectStatus()) as Map<String, dynamic>;
final statusNum = status['status_num'] as int;
- final preStatus = stateGlobal.svcStatus.value;
if (statusNum == 0) {
stateGlobal.svcStatus.value = SvcStatus.connecting;
} else if (statusNum == -1) {
stateGlobal.svcStatus.value = SvcStatus.notReady;
} else if (statusNum == 1) {
stateGlobal.svcStatus.value = SvcStatus.ready;
- if (preStatus != SvcStatus.ready &&
- DateTime.now().difference(_appStartTime) > Duration(seconds: 5)) {
- gFFI.userModel.refreshCurrentUser();
- }
} else {
stateGlobal.svcStatus.value = SvcStatus.notReady;
}
diff --git a/flutter/lib/models/ab_model.dart b/flutter/lib/models/ab_model.dart
index c3fad6fe4..6f3820e86 100644
--- a/flutter/lib/models/ab_model.dart
+++ b/flutter/lib/models/ab_model.dart
@@ -112,6 +112,7 @@ class AbModel {
{required ForcePullAb? force, required bool quiet}) async {
if (bind.isDisableAb()) return;
if (!gFFI.userModel.isLogin) return;
+ if (gFFI.userModel.networkError.isNotEmpty) return;
if (force == null && listInitialized && current.initialized) return;
debugPrint("pullAb, force: $force, quiet: $quiet");
if (!listInitialized || force == ForcePullAb.listAndCurrent) {
diff --git a/flutter/lib/models/group_model.dart b/flutter/lib/models/group_model.dart
index 50459ffe9..184c94bff 100644
--- a/flutter/lib/models/group_model.dart
+++ b/flutter/lib/models/group_model.dart
@@ -28,6 +28,7 @@ class GroupModel {
Future<void> pull({force = true, quiet = false}) async {
if (bind.isDisableGroupPanel()) return;
if (!gFFI.userModel.isLogin || groupLoading.value) return;
+ if (gFFI.userModel.networkError.isNotEmpty) return;
if (!force && initialized) return;
if (!quiet) {
groupLoading.value = true;
diff --git a/flutter/lib/models/user_model.dart b/flutter/lib/models/user_model.dart
index 4e7f881ad..9d9c762d9 100644
--- a/flutter/lib/models/user_model.dart
+++ b/flutter/lib/models/user_model.dart
@@ -17,13 +17,23 @@ bool refreshingUser = false;
class UserModel {
final RxString userName = ''.obs;
final RxBool isAdmin = false.obs;
+ final RxString networkError = ''.obs;
bool get isLogin => userName.isNotEmpty;
WeakReference<FFI> parent;
- UserModel(this.parent);
+ UserModel(this.parent) {
+ userName.listen((p0) {
+ // When user name becomes empty, show login button
+ // When user name becomes non-empty:
+ // For _updateLocalUserInfo, network error will be set later
+ // For login success, should clear network error
+ networkError.value = '';
+ });
+ }
void refreshCurrentUser() async {
if (bind.isDisableAccount()) return;
+ networkError.value = '';
final token = bind.mainGetLocalOption(key: 'access_token');
if (token == '') {
await updateOtherModels();
@@ -38,12 +48,18 @@ class UserModel {
if (refreshingUser) return;
try {
refreshingUser = true;
- final response = await http.post(Uri.parse('$url/api/currentUser'),
- headers: {
- 'Content-Type': 'application/json',
- 'Authorization': 'Bearer $token'
- },
- body: json.encode(body));
+ final http.Response response;
+ try {
+ response = await http.post(Uri.parse('$url/api/currentUser'),
+ headers: {
+ 'Content-Type': 'application/json',
+ 'Authorization': 'Bearer $token'
+ },
+ body: json.encode(body));
+ } catch (e) {
+ networkError.value = e.toString();
+ rethrow;
+ }
refreshingUser = false;
final status = response.statusCode;
if (status == 401 || status == 400) {
diff --git a/src/lang/ar.rs b/src/lang/ar.rs
index 7fd258b81..05b8ae546 100644
--- a/src/lang/ar.rs
+++ b/src/lang/ar.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/be.rs b/src/lang/be.rs
index 78ed849ff..09936fb5a 100644
--- a/src/lang/be.rs
+++ b/src/lang/be.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/bg.rs b/src/lang/bg.rs
index cddbddac7..d4099fa24 100644
--- a/src/lang/bg.rs
+++ b/src/lang/bg.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/ca.rs b/src/lang/ca.rs
index f376d91df..6b3c4c294 100644
--- a/src/lang/ca.rs
+++ b/src/lang/ca.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/cn.rs b/src/lang/cn.rs
index df9fb5303..2b33a8534 100644
--- a/src/lang/cn.rs
+++ b/src/lang/cn.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", "确定要取消 Telegram 机器人吗?"),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", "请检查网络连接, 然后点击再试"),
].iter().cloned().collect();
}
diff --git a/src/lang/cs.rs b/src/lang/cs.rs
index a85a4d560..574c38297 100644
--- a/src/lang/cs.rs
+++ b/src/lang/cs.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", "Jste si jisti, že chcete zrušit bota Telegramu?"),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/da.rs b/src/lang/da.rs
index 679394599..5ee83337f 100644
--- a/src/lang/da.rs
+++ b/src/lang/da.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/de.rs b/src/lang/de.rs
index c604167ef..3a2e78a7a 100644
--- a/src/lang/de.rs
+++ b/src/lang/de.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", "Sind Sie sicher, dass Sie Telegram-Bot abbrechen möchten?"),
("About RustDesk", "Über RustDesk"),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/el.rs b/src/lang/el.rs
index 731e2a5f3..c5ed30ebd 100644
--- a/src/lang/el.rs
+++ b/src/lang/el.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", "Είστε βέβαιοι ότι θέλετε να ακυρώσετε το Telegram bot;"),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/en.rs b/src/lang/en.rs
index c4045fd8a..638c1a608 100644
--- a/src/lang/en.rs
+++ b/src/lang/en.rs
@@ -232,5 +232,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-2fa-confirm-tip", "Are you sure you want to cancel 2FA?"),
("cancel-bot-confirm-tip", "Are you sure you want to cancel Telegram bot?"),
("About RustDesk", ""),
+ ("network_error_tip", "Please check your network connection, then click retry.")
].iter().cloned().collect();
}
diff --git a/src/lang/eo.rs b/src/lang/eo.rs
index 190c69346..f92c706c6 100644
--- a/src/lang/eo.rs
+++ b/src/lang/eo.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/es.rs b/src/lang/es.rs
index 0e94071e4..e5eaadf3b 100644
--- a/src/lang/es.rs
+++ b/src/lang/es.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", "¿Seguro que quieres cancelar el bot de Telegram?"),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/et.rs b/src/lang/et.rs
index 81fc2e77a..bf5742786 100644
--- a/src/lang/et.rs
+++ b/src/lang/et.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/eu.rs b/src/lang/eu.rs
index 48efcf789..487ee23c3 100644
--- a/src/lang/eu.rs
+++ b/src/lang/eu.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/fa.rs b/src/lang/fa.rs
index e6754205a..e7a5af768 100644
--- a/src/lang/fa.rs
+++ b/src/lang/fa.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/fr.rs b/src/lang/fr.rs
index e0b0306dd..bf40cd045 100644
--- a/src/lang/fr.rs
+++ b/src/lang/fr.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/he.rs b/src/lang/he.rs
index 401b52c28..84e461c06 100644
--- a/src/lang/he.rs
+++ b/src/lang/he.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/hr.rs b/src/lang/hr.rs
index 778eeacfa..aa08949b2 100644
--- a/src/lang/hr.rs
+++ b/src/lang/hr.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/hu.rs b/src/lang/hu.rs
index 21e898c21..054c333e9 100644
--- a/src/lang/hu.rs
+++ b/src/lang/hu.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/id.rs b/src/lang/id.rs
index e13c088fd..773a75eab 100644
--- a/src/lang/id.rs
+++ b/src/lang/id.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/it.rs b/src/lang/it.rs
index 5231ddac4..39ceeec67 100644
--- a/src/lang/it.rs
+++ b/src/lang/it.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", "Sei sicuro di voler annulare Telegram?"),
("About RustDesk", "Info su RustDesk"),
("Send clipboard keystrokes", "Invia sequenze tasti appunti"),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/ja.rs b/src/lang/ja.rs
index a1413f82b..c2537ebc9 100644
--- a/src/lang/ja.rs
+++ b/src/lang/ja.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", "本当にTelegram Botをキャンセルしますか?"),
("About RustDesk", "RustDeskについて"),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/ko.rs b/src/lang/ko.rs
index 48b39b4a7..3d96ce0f2 100644
--- a/src/lang/ko.rs
+++ b/src/lang/ko.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/kz.rs b/src/lang/kz.rs
index a8f7fde92..21ef39574 100644
--- a/src/lang/kz.rs
+++ b/src/lang/kz.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/lt.rs b/src/lang/lt.rs
index 7167663a5..61ff2ee10 100644
--- a/src/lang/lt.rs
+++ b/src/lang/lt.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/lv.rs b/src/lang/lv.rs
index b8add4aa8..5ce48429d 100644
--- a/src/lang/lv.rs
+++ b/src/lang/lv.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", "Vai tiešām vēlaties atcelt Telegram robotu?"),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/nb.rs b/src/lang/nb.rs
index 36269a377..3a986ecbb 100644
--- a/src/lang/nb.rs
+++ b/src/lang/nb.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/nl.rs b/src/lang/nl.rs
index ea0523ba7..4f4fbcc2b 100644
--- a/src/lang/nl.rs
+++ b/src/lang/nl.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", "Weet je zeker dat je de Telegram-bot wilt annuleren?"),
("About RustDesk", "Over RustDesk"),
("Send clipboard keystrokes", "Klembord toetsaanslagen verzenden"),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/pl.rs b/src/lang/pl.rs
index 3e3d135a7..370cf59e4 100644
--- a/src/lang/pl.rs
+++ b/src/lang/pl.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/pt_PT.rs b/src/lang/pt_PT.rs
index 0192d1a44..0bf0c7304 100644
--- a/src/lang/pt_PT.rs
+++ b/src/lang/pt_PT.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/ptbr.rs b/src/lang/ptbr.rs
index 5a7646bdc..003786c46 100644
--- a/src/lang/ptbr.rs
+++ b/src/lang/ptbr.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/ro.rs b/src/lang/ro.rs
index fba670731..bace41072 100644
--- a/src/lang/ro.rs
+++ b/src/lang/ro.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/ru.rs b/src/lang/ru.rs
index c9a1b41ea..7ccf6ba6f 100644
--- a/src/lang/ru.rs
+++ b/src/lang/ru.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", "Отключить Telegram-бота?"),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/sk.rs b/src/lang/sk.rs
index 6d0eb2ac9..9eaed3875 100644
--- a/src/lang/sk.rs
+++ b/src/lang/sk.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", "Ste si istí, že chcete zrušiť bota Telegramu?"),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/sl.rs b/src/lang/sl.rs
index ef0c0404b..98f33956a 100755
--- a/src/lang/sl.rs
+++ b/src/lang/sl.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/sq.rs b/src/lang/sq.rs
index 44de8fc20..c3ebca629 100644
--- a/src/lang/sq.rs
+++ b/src/lang/sq.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/sr.rs b/src/lang/sr.rs
index 56b6afb49..c6773955a 100644
--- a/src/lang/sr.rs
+++ b/src/lang/sr.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/sv.rs b/src/lang/sv.rs
index 0e99407c1..2445bc2f1 100644
--- a/src/lang/sv.rs
+++ b/src/lang/sv.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/template.rs b/src/lang/template.rs
index b1559a65e..3d3c86e5b 100644
--- a/src/lang/template.rs
+++ b/src/lang/template.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/th.rs b/src/lang/th.rs
index 6237b4822..fa369336c 100644
--- a/src/lang/th.rs
+++ b/src/lang/th.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/tr.rs b/src/lang/tr.rs
index e1180ba44..366265a57 100644
--- a/src/lang/tr.rs
+++ b/src/lang/tr.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/tw.rs b/src/lang/tw.rs
index 40b9201e1..9723bfde5 100644
--- a/src/lang/tw.rs
+++ b/src/lang/tw.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", "確定要取消 Telegram 機器人嗎?"),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/ua.rs b/src/lang/ua.rs
index d9dc28fe7..187603fb0 100644
--- a/src/lang/ua.rs
+++ b/src/lang/ua.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}
diff --git a/src/lang/vn.rs b/src/lang/vn.rs
index f68786b83..6042a98d5 100644
--- a/src/lang/vn.rs
+++ b/src/lang/vn.rs
@@ -631,5 +631,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("cancel-bot-confirm-tip", ""),
("About RustDesk", ""),
("Send clipboard keystrokes", ""),
+ ("network_error_tip", ""),
].iter().cloned().collect();
}