An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Rust androidanydeskdartflatpakflutterflutter-appsioslinuxmacosp2prdpremote-controlremote-desktoprustrust-langteamviewervncwaylandwindows
refact: terminal, save window pos on close (#12370)
fufesou9bca5ac000b6
diff --git a/flutter/lib/utils/multi_window_manager.dart b/flutter/lib/utils/multi_window_manager.dartindex a7b06b5c7..95044eb74 100644--- a/flutter/lib/utils/multi_window_manager.dart+++ b/flutter/lib/utils/multi_window_manager.dart@@ -460,9 +460,13 @@ class RustDeskMultiWindowManager {if (windows.isEmpty) {return;}- for (final wId in windows) {- debugPrint("closing multi window, type: ${type.toString()} id: $wId");- await saveWindowPosition(type, windowId: wId);+ for (int i = 0; i < windows.length; i++) {+ final wId = windows[i];+ final shouldSavePos = type != WindowType.Terminal || i == windows.length - 1;+ if (shouldSavePos) {+ debugPrint("closing multi window, type: ${type.toString()} id: $wId");+ await saveWindowPosition(type, windowId: wId);+ }try {await WindowController.fromWindowId(wId).setPreventClose(false);await WindowController.fromWindowId(wId).close();