An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Rust androidanydeskdartflatpakflutterflutter-appsioslinuxmacosp2prdpremote-controlremote-desktoprustrust-langteamviewervncwaylandwindows
refact: remove redundant escape (#9634)
fufesou65683cc3e6da
diff --git a/flutter/lib/common.dart b/flutter/lib/common.dartindex 881cf3b8b..2bbb224cb 100644--- a/flutter/lib/common.dart+++ b/flutter/lib/common.dart@@ -3616,3 +3616,7 @@ List<SubWindowResizeEdge>? get subWindowManagerEnableResizeEdges => isWindowsSubWindowResizeEdge.topRight,]: null;++void earlyAssert() {+ assert('\1' == '1');+}diff --git a/flutter/lib/main.dart b/flutter/lib/main.dartindex 9342c9e50..62574dfe6 100644--- a/flutter/lib/main.dart+++ b/flutter/lib/main.dart@@ -36,6 +36,7 @@ WindowType? kWindowType;late List<String> kBootArgs;Future<void> main(List<String> args) async {+ earlyAssert();WidgetsFlutterBinding.ensureInitialized();debugPrint("launch args: $args");diff --git a/flutter/lib/mobile/pages/remote_page.dart b/flutter/lib/mobile/pages/remote_page.dartindex 74b56cd45..19f7cc575 100644--- a/flutter/lib/mobile/pages/remote_page.dart+++ b/flutter/lib/mobile/pages/remote_page.dart@@ -155,9 +155,9 @@ class _RemotePageState extends State<RemotePage> {var oldValue = _value;_value = newValue;var i = newValue.length - 1;- for (; i >= 0 && newValue[i] != '\1'; --i) {}+ for (; i >= 0 && newValue[i] != '1'; --i) {}var j = oldValue.length - 1;- for (; j >= 0 && oldValue[j] != '\1'; --j) {}+ for (; j >= 0 && oldValue[j] != '1'; --j) {}if (i < j) j = i;var subNewValue = newValue.substring(j + 1);var subOldValue = oldValue.substring(j + 1);@@ -206,8 +206,8 @@ class _RemotePageState extends State<RemotePage> {_value = newValue;if (oldValue.isNotEmpty &&newValue.isNotEmpty &&- oldValue[0] == '\1' &&- newValue[0] != '\1') {+ oldValue[0] == '1' &&+ newValue[0] != '1') {// clipboardoldValue = '';}