remove peer card menu

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow 2023-08-08 14:22:32 +08:00
parent 836a2b0fbd
commit 9b614c8b32
36 changed files with 7 additions and 81 deletions

View File

@ -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));

View File

@ -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) {

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();