diff --git a/flutter/lib/common/widgets/peer_card.dart b/flutter/lib/common/widgets/peer_card.dart index a1c800c8..50beda75 100644 --- a/flutter/lib/common/widgets/peer_card.dart +++ b/flutter/lib/common/widgets/peer_card.dart @@ -835,7 +835,7 @@ class RecentPeerCard extends BasePeerCard { if (isDesktop && peer.platform != 'Android') { menuItems.add(_tcpTunnelingAction(context, peer.id)); } - menuItems.add(await _openNewConnInOptAction(peer.id)); + // menuItems.add(await _openNewConnInOptAction(peer.id)); menuItems.add(await _forceAlwaysRelayAction(peer.id)); if (peer.platform == 'Windows') { menuItems.add(_rdpAction(context, peer.id)); @@ -889,7 +889,7 @@ class FavoritePeerCard extends BasePeerCard { if (isDesktop && peer.platform != 'Android') { menuItems.add(_tcpTunnelingAction(context, peer.id)); } - menuItems.add(await _openNewConnInOptAction(peer.id)); + // menuItems.add(await _openNewConnInOptAction(peer.id)); menuItems.add(await _forceAlwaysRelayAction(peer.id)); if (peer.platform == 'Windows') { menuItems.add(_rdpAction(context, peer.id)); @@ -943,7 +943,7 @@ class DiscoveredPeerCard extends BasePeerCard { if (isDesktop && peer.platform != 'Android') { menuItems.add(_tcpTunnelingAction(context, peer.id)); } - menuItems.add(await _openNewConnInOptAction(peer.id)); + // menuItems.add(await _openNewConnInOptAction(peer.id)); menuItems.add(await _forceAlwaysRelayAction(peer.id)); if (peer.platform == 'Windows') { menuItems.add(_rdpAction(context, peer.id)); @@ -993,7 +993,7 @@ class AddressBookPeerCard extends BasePeerCard { if (isDesktop && peer.platform != 'Android') { menuItems.add(_tcpTunnelingAction(context, peer.id)); } - menuItems.add(await _openNewConnInOptAction(peer.id)); + // menuItems.add(await _openNewConnInOptAction(peer.id)); menuItems.add(await _forceAlwaysRelayAction(peer.id)); if (peer.platform == 'Windows') { menuItems.add(_rdpAction(context, peer.id)); @@ -1056,7 +1056,7 @@ class MyGroupPeerCard extends BasePeerCard { if (isDesktop && peer.platform != 'Android') { menuItems.add(_tcpTunnelingAction(context, peer.id)); } - menuItems.add(await _openNewConnInOptAction(peer.id)); + // menuItems.add(await _openNewConnInOptAction(peer.id)); menuItems.add(await _forceAlwaysRelayAction(peer.id)); if (peer.platform == 'Windows') { menuItems.add(_rdpAction(context, peer.id)); diff --git a/flutter/lib/utils/multi_window_manager.dart b/flutter/lib/utils/multi_window_manager.dart index abd76238..e87551d6 100644 --- a/flutter/lib/utils/multi_window_manager.dart +++ b/flutter/lib/utils/multi_window_manager.dart @@ -134,14 +134,8 @@ class RustDeskMultiWindowManager { final msg = jsonEncode(params); // separate window for file transfer is not supported - bool openInTabs = false; - if (type == WindowType.RemoteDesktop) { - if (mainGetLocalBoolOptionSync(kOptionOpenNewConnInTabs)) { - openInTabs = !mainGetPeerBoolOptionSync(remoteId, kOptionOpenInWindows); - } else { - openInTabs = mainGetPeerBoolOptionSync(remoteId, kOptionOpenInTabs); - } - } + bool openInTabs = type != WindowType.RemoteDesktop || + mainGetLocalBoolOptionSync(kOptionOpenNewConnInTabs); if (windows.length > 1 || !openInTabs) { for (final windowId in windows) { diff --git a/src/lang/ca.rs b/src/lang/ca.rs index 0bf0bb3e..c88e0719 100644 --- a/src/lang/ca.rs +++ b/src/lang/ca.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/cn.rs b/src/lang/cn.rs index d1391409..644882b6 100644 --- a/src/lang/cn.rs +++ b/src/lang/cn.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", "同步最近会话"), ("Sort tags", "对标签进行排序"), ("Open new connections in tabs", "在选项卡中打开新连接"), - ("Open in Tabs", "在选项卡中打开"), - ("Open with New Window", "在新窗口中打开"), ("separate window", "独立窗口"), ("Move tab to new window", "将标签页移至新窗口"), ].iter().cloned().collect(); diff --git a/src/lang/cs.rs b/src/lang/cs.rs index c857c1a6..2c0f62a8 100644 --- a/src/lang/cs.rs +++ b/src/lang/cs.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/da.rs b/src/lang/da.rs index 26d35390..0da788f3 100644 --- a/src/lang/da.rs +++ b/src/lang/da.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/de.rs b/src/lang/de.rs index 5dbaaac1..e177ccd1 100644 --- a/src/lang/de.rs +++ b/src/lang/de.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", "Synchronisierung mit den letzten Sitzungen"), ("Sort tags", "Tags sortieren"), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", "Separates Fenster"), ("Move tab to new window", "Tab in neues Fenster verschieben"), ].iter().cloned().collect(); diff --git a/src/lang/el.rs b/src/lang/el.rs index 3a6bda3f..c98065d5 100644 --- a/src/lang/el.rs +++ b/src/lang/el.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/eo.rs b/src/lang/eo.rs index c0259aff..2959f822 100644 --- a/src/lang/eo.rs +++ b/src/lang/eo.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/es.rs b/src/lang/es.rs index da98bcb4..40b0f8aa 100644 --- a/src/lang/es.rs +++ b/src/lang/es.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", "Sincronizar con sesiones recientes"), ("Sort tags", "Ordenar etiquetas"), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/fa.rs b/src/lang/fa.rs index bb61497f..d7ffcba2 100644 --- a/src/lang/fa.rs +++ b/src/lang/fa.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/fr.rs b/src/lang/fr.rs index e1c79e52..d5d2bf16 100644 --- a/src/lang/fr.rs +++ b/src/lang/fr.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/hu.rs b/src/lang/hu.rs index 4fea2827..b4a51e1c 100644 --- a/src/lang/hu.rs +++ b/src/lang/hu.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/id.rs b/src/lang/id.rs index 3549da2b..0be40ee1 100644 --- a/src/lang/id.rs +++ b/src/lang/id.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/it.rs b/src/lang/it.rs index ded2e5a0..f0091ec0 100644 --- a/src/lang/it.rs +++ b/src/lang/it.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", "Sincronizza con le sessioni recenti"), ("Sort tags", "Ordina etichette"), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", "Separa finestra"), ("Move tab to new window", "Sposta scheda nella finestra successiva"), ].iter().cloned().collect(); diff --git a/src/lang/ja.rs b/src/lang/ja.rs index 334e99bd..5cb55777 100644 --- a/src/lang/ja.rs +++ b/src/lang/ja.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/ko.rs b/src/lang/ko.rs index 6cc4170f..0e3a3b61 100644 --- a/src/lang/ko.rs +++ b/src/lang/ko.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/kz.rs b/src/lang/kz.rs index 59ef40dc..37846633 100644 --- a/src/lang/kz.rs +++ b/src/lang/kz.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/lt.rs b/src/lang/lt.rs index 3f8bbdc5..e1ff74fe 100644 --- a/src/lang/lt.rs +++ b/src/lang/lt.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/nl.rs b/src/lang/nl.rs index 9ef86b6c..4c6b7cc0 100644 --- a/src/lang/nl.rs +++ b/src/lang/nl.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", "Recente sessies synchroniseren"), ("Sort tags", "Labels sorteren"), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/pl.rs b/src/lang/pl.rs index e77f6436..21deb87a 100644 --- a/src/lang/pl.rs +++ b/src/lang/pl.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", "Synchronizacja z ostatnimi sesjami"), ("Sort tags", "Znaczniki sortowania"), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", "oddzielne okno"), ("Move tab to new window", "Przenieś zakładkę do nowego okna"), ].iter().cloned().collect(); diff --git a/src/lang/pt_PT.rs b/src/lang/pt_PT.rs index 7f54d166..40653dc6 100644 --- a/src/lang/pt_PT.rs +++ b/src/lang/pt_PT.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/ptbr.rs b/src/lang/ptbr.rs index 7f55d259..4544bbe3 100644 --- a/src/lang/ptbr.rs +++ b/src/lang/ptbr.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/ro.rs b/src/lang/ro.rs index 3ce0446f..eca9f026 100644 --- a/src/lang/ro.rs +++ b/src/lang/ro.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/ru.rs b/src/lang/ru.rs index a23030e1..13164a4d 100644 --- a/src/lang/ru.rs +++ b/src/lang/ru.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", "Синхронизация последних сессий"), ("Sort tags", "Сортировка меток"), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", "отдельное окно"), ("Move tab to new window", "Переместить вкладку в отдельное окно"), ].iter().cloned().collect(); diff --git a/src/lang/sk.rs b/src/lang/sk.rs index 5f74a072..b27b2886 100644 --- a/src/lang/sk.rs +++ b/src/lang/sk.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/sl.rs b/src/lang/sl.rs index f4a7946c..99eb2371 100755 --- a/src/lang/sl.rs +++ b/src/lang/sl.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/sq.rs b/src/lang/sq.rs index dfaad105..251e11a2 100644 --- a/src/lang/sq.rs +++ b/src/lang/sq.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/sr.rs b/src/lang/sr.rs index be85ffcb..d213cd27 100644 --- a/src/lang/sr.rs +++ b/src/lang/sr.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/sv.rs b/src/lang/sv.rs index e8ef6c47..63642360 100644 --- a/src/lang/sv.rs +++ b/src/lang/sv.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/template.rs b/src/lang/template.rs index c76b3b22..52cbcd17 100644 --- a/src/lang/template.rs +++ b/src/lang/template.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/th.rs b/src/lang/th.rs index 056d0ca0..57363dac 100644 --- a/src/lang/th.rs +++ b/src/lang/th.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/tr.rs b/src/lang/tr.rs index 39dab06c..c6c7fcc2 100644 --- a/src/lang/tr.rs +++ b/src/lang/tr.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/tw.rs b/src/lang/tw.rs index d58f7e8f..2390835c 100644 --- a/src/lang/tw.rs +++ b/src/lang/tw.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/ua.rs b/src/lang/ua.rs index 13e6cb1d..d782bb26 100644 --- a/src/lang/ua.rs +++ b/src/lang/ua.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect(); diff --git a/src/lang/vn.rs b/src/lang/vn.rs index 18c81f29..041d056a 100644 --- a/src/lang/vn.rs +++ b/src/lang/vn.rs @@ -525,8 +525,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Sync with recent sessions", ""), ("Sort tags", ""), ("Open new connections in tabs", ""), - ("Open in Tabs", ""), - ("Open with New Window", ""), ("separate window", ""), ("Move tab to new window", ""), ].iter().cloned().collect();