Skip to content

Commit

Permalink
Merge branch 'rustdesk:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbo8418 authored Jun 29, 2024
2 parents 117e39d + f9b0a88 commit 07ac7b4
Show file tree
Hide file tree
Showing 48 changed files with 135 additions and 192 deletions.
2 changes: 1 addition & 1 deletion flutter/lib/desktop/widgets/remote_toolbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1882,7 +1882,7 @@ class _KeyboardMenu extends StatelessWidget {

mobileActions() {
if (pi.platform != kPeerPlatformAndroid) return [];
final enabled = versionCmp(pi.version, '1.2.6') >= 0;
final enabled = versionCmp(pi.version, '1.2.7') >= 0;
if (!enabled) return [];
return [
Divider(),
Expand Down
2 changes: 2 additions & 0 deletions flutter/lib/mobile/pages/remote_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,8 @@ class _RemotePageState extends State<RemotePage> {
!gFFI.ffiModel.keyboard) {
return [];
}
final enabled = versionCmp(gFFI.ffiModel.pi.version, '1.2.7') >= 0;
if (!enabled) return [];
return [
TTextMenu(
child: Text(translate('Back')),
Expand Down
14 changes: 0 additions & 14 deletions flutter/lib/models/model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -438,20 +438,6 @@ class FfiModel with ChangeNotifier {
_handlePortableServiceRunning(String peerId, Map<String, dynamic> evt) {
final running = evt['running'] == 'true';
parent.target?.elevationModel.onPortableServiceRunning(running);
if (running) {
if (pi.primaryDisplay != kInvalidDisplayIndex) {
if (pi.currentDisplay != pi.primaryDisplay) {
// Notify to switch display
msgBox(sessionId, 'custom-nook-nocancel-hasclose-info', 'Prompt',
'elevated_switch_display_msg', '', parent.target!.dialogManager);
bind.sessionSwitchDisplay(
isDesktop: isDesktop,
sessionId: sessionId,
value: Int32List.fromList([pi.primaryDisplay]),
);
}
}
}
}

handleAliasChanged(Map<String, dynamic> evt) {
Expand Down
6 changes: 3 additions & 3 deletions src/lang/ar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Test", ""),
("display_is_plugged_out_msg", ""),
("No displays", ""),
("elevated_switch_display_msg", ""),
("Open in new window", ""),
("Show displays as individual windows", ""),
("Use all my displays for the remote session", ""),
Expand All @@ -570,10 +569,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Enter privacy mode", ""),
("Exit privacy mode", ""),
("idd_not_support_under_win10_2004_tip", ""),
("switch_display_elevated_connections_tip", ""),
("input_source_1_tip", ""),
("input_source_2_tip", ""),
("capture_display_elevated_connections_tip", ""),
("Swap control-command key", ""),
("swap-left-right-mouse", ""),
("2FA code", ""),
Expand Down Expand Up @@ -627,5 +624,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Volume up", ""),
("Volume down", ""),
("Power", ""),
("Telegram bot", ""),
("enable-bot-tip", ""),
("enable-bot-desc", ""),
].iter().cloned().collect();
}
6 changes: 3 additions & 3 deletions src/lang/be.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Test", "Тэст"),
("display_is_plugged_out_msg", "Дысплей адключаны, пераключыцеся на першы дысплей."),
("No displays", "Няма дысплеяў"),
("elevated_switch_display_msg", "Пераключыцеся на асноўны дысплей, бо ў павышаным рэжыме не падтрымліваецца некалькі дысплеяў."),
("Open in new window", "Адкрыць у новым акне"),
("Show displays as individual windows", "Паказваць дысплеі ў асобных акнах"),
("Use all my displays for the remote session", "Выкарыстоўваць усе мае дысплеі для аддаленага сеансу"),
Expand All @@ -570,10 +569,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Enter privacy mode", "Уключыць рэжым канфідэнцыяльнасці"),
("Exit privacy mode", "Адключыць рэжым канфідэнцыяльнасці"),
("idd_not_support_under_win10_2004_tip", "Драйвер непрамога адлюстравання не падтрымліваецца. Патрабуецца Windows 10 версіі 2004 ці навейшая."),
("switch_display_elevated_connections_tip", "Пераключэнне на неасноўны дысплей не падтрымліваецца ў рэжыме павышэння правоў пры наяўнасці некалькіх падлучэнняў. Паўтарыце спробу пасля ўстаноўкі, калі хочаце кіраваць некалькімі дысплеямі."),
("input_source_1_tip", "Крыніца ўводу 1"),
("input_source_2_tip", "Крыніца ўводу 2"),
("capture_display_elevated_connections_tip", "Захоп экрана некалькіх дысплеяў не падтрымліваецца ў рэжыме павышэння правоў. Паўтарыце спробу пасля ўстаноўкі, калі хочаце кіраваць некалькімі дысплеямі."),
("Swap control-command key", "Памяняць месцамі значэнні кнопак Ctrl і Command"),
("swap-left-right-mouse", "Памяняць месцамі значэнні левай і правай кнопак мышы"),
("2FA code", "Код двухфактарнай аўтэнтыфікацыі"),
Expand Down Expand Up @@ -627,5 +624,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Volume up", ""),
("Volume down", ""),
("Power", ""),
("Telegram bot", ""),
("enable-bot-tip", ""),
("enable-bot-desc", ""),
].iter().cloned().collect();
}
6 changes: 3 additions & 3 deletions src/lang/bg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Test", ""),
("display_is_plugged_out_msg", "Дисплеят е изключен, превключете на първия монитор."),
("No displays", ""),
("elevated_switch_display_msg", "Превключете към основния монитор, защото множество монитори не се поддържат в потребителски режим с повишени права."),
("Open in new window", ""),
("Show displays as individual windows", ""),
("Use all my displays for the remote session", ""),
Expand All @@ -570,10 +569,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Enter privacy mode", ""),
("Exit privacy mode", ""),
("idd_not_support_under_win10_2004_tip", "Индиректен драйвер за дисплей не се поддържа. Изисква се Windows 10, версия 2004 или по-нова."),
("switch_display_elevated_connections_tip", "Превключването към неосновен дисплей не се поддържа в режим на потребител с повишени права, когато има множество връзки. Моля, опитайте отново след инсталация, ако искате да контролирате няколко дисплея."),
("input_source_1_tip", "Входен източник 1"),
("input_source_2_tip", "Входен източник 2"),
("capture_display_elevated_connections_tip", "Заснемането на множество дисплеи не се поддържа в потребителския режим с повишени права. Моля, опитайте отново след инсталация, ако искате да контролирате няколко дисплея."),
("Swap control-command key", ""),
("swap-left-right-mouse", "Разменете левия и десния бутон на мишката"),
("2FA code", "Код за Двуфакторна удостоверяване"),
Expand Down Expand Up @@ -627,5 +624,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Volume up", ""),
("Volume down", ""),
("Power", ""),
("Telegram bot", ""),
("enable-bot-tip", ""),
("enable-bot-desc", ""),
].iter().cloned().collect();
}
6 changes: 3 additions & 3 deletions src/lang/ca.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Test", ""),
("display_is_plugged_out_msg", ""),
("No displays", ""),
("elevated_switch_display_msg", ""),
("Open in new window", ""),
("Show displays as individual windows", ""),
("Use all my displays for the remote session", ""),
Expand All @@ -570,10 +569,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Enter privacy mode", ""),
("Exit privacy mode", ""),
("idd_not_support_under_win10_2004_tip", ""),
("switch_display_elevated_connections_tip", ""),
("input_source_1_tip", ""),
("input_source_2_tip", ""),
("capture_display_elevated_connections_tip", ""),
("Swap control-command key", ""),
("swap-left-right-mouse", ""),
("2FA code", ""),
Expand Down Expand Up @@ -627,5 +624,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Volume up", ""),
("Volume down", ""),
("Power", ""),
("Telegram bot", ""),
("enable-bot-tip", ""),
("enable-bot-desc", ""),
].iter().cloned().collect();
}
6 changes: 3 additions & 3 deletions src/lang/cn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Test", "测试"),
("display_is_plugged_out_msg", "显示器被拔出,切换到第一个显示器。"),
("No displays", "没有显示器。"),
("elevated_switch_display_msg", "切换到主显示器,因为用户提权后,不支持多显示器画面。"),
("Open in new window", "在新的窗口中打开"),
("Show displays as individual windows", "在单个窗口中打开显示器"),
("Use all my displays for the remote session", "将我的所有显示器用于远程会话"),
Expand All @@ -570,10 +569,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Enter privacy mode", "进入隐私模式"),
("Exit privacy mode", "退出隐私模式"),
("idd_not_support_under_win10_2004_tip", "不支持 Indirect display driver 。需要 Windows 10 版本 2004 及更高的版本。"),
("switch_display_elevated_connections_tip", "用户提权后,被控有多个连接,不能切换到非主显示器。若要控制多显示器,请安装后再试。"),
("input_source_1_tip", "输入源 1"),
("input_source_2_tip", "输入源 2"),
("capture_display_elevated_connections_tip", "用户提权后,不能显示多个显示器。若要控制多显示器,请安装后再试。"),
("Swap control-command key", "交换 Control 键和 Command 键"),
("swap-left-right-mouse", "交换鼠标左右键"),
("2FA code", "双重认证代码"),
Expand Down Expand Up @@ -627,5 +624,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Volume up", "提升音量"),
("Volume down", "降低音量"),
("Power", "电源"),
("Telegram bot", ""),
("enable-bot-tip", ""),
("enable-bot-desc", ""),
].iter().cloned().collect();
}
6 changes: 3 additions & 3 deletions src/lang/cs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Test", "Test"),
("display_is_plugged_out_msg", "Obrazovka je odpojena, přepněte na první obrazovku."),
("No displays", "Žádné obrazovky"),
("elevated_switch_display_msg", "Přepnout na primární obrazovku, protože více obrazovek není podporováno ve zvýšeném režimu."),
("Open in new window", "Otevřít v novém okně"),
("Show displays as individual windows", "Zobrazit obrazovky jako jednotlivá okna"),
("Use all my displays for the remote session", "Použít všechny mé obrazovky pro vzdálenou relaci"),
Expand All @@ -570,10 +569,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Enter privacy mode", "Vstup do režimu soukromí"),
("Exit privacy mode", "Ukončit režim soukromí"),
("idd_not_support_under_win10_2004_tip", "Ovladač nepřímého zobrazení není podporován. Je vyžadován systém Windows 10, verze 2004 nebo novější."),
("switch_display_elevated_connections_tip", "Přepnutí na jinou než primární obrazovku není podporováno ve zvýšeném režimu, pokud existuje více připojení. Pokud chcete ovládat více obrazovek, zkuste to po instalaci znovu."),
("input_source_1_tip", "Vstupní zdroj 1"),
("input_source_2_tip", "Vstupní zdroj 2"),
("capture_display_elevated_connections_tip", "Snímání více displejů není podporováno v uživatelském režimu se zvýšenými oprávněními. Pokud chcete ovládat více displejů, zkuste to znovu po instalaci."),
("Swap control-command key", "Prohození klávesy control-command"),
("swap-left-right-mouse", "Prohodit levé a pravé tlačítko myši"),
("2FA code", "2FA kód"),
Expand Down Expand Up @@ -627,5 +624,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Volume up", ""),
("Volume down", ""),
("Power", ""),
("Telegram bot", ""),
("enable-bot-tip", ""),
("enable-bot-desc", ""),
].iter().cloned().collect();
}
6 changes: 3 additions & 3 deletions src/lang/da.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Test", ""),
("display_is_plugged_out_msg", ""),
("No displays", ""),
("elevated_switch_display_msg", ""),
("Open in new window", ""),
("Show displays as individual windows", ""),
("Use all my displays for the remote session", ""),
Expand All @@ -570,10 +569,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Enter privacy mode", ""),
("Exit privacy mode", ""),
("idd_not_support_under_win10_2004_tip", ""),
("switch_display_elevated_connections_tip", ""),
("input_source_1_tip", ""),
("input_source_2_tip", ""),
("capture_display_elevated_connections_tip", ""),
("Swap control-command key", ""),
("swap-left-right-mouse", ""),
("2FA code", ""),
Expand Down Expand Up @@ -627,5 +624,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Volume up", ""),
("Volume down", ""),
("Power", ""),
("Telegram bot", ""),
("enable-bot-tip", ""),
("enable-bot-desc", ""),
].iter().cloned().collect();
}
6 changes: 3 additions & 3 deletions src/lang/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Test", "Test"),
("display_is_plugged_out_msg", "Der Bildschirm ist nicht angeschlossen, schalten Sie auf den ersten Bildschirm um."),
("No displays", "Keine Bildschirme"),
("elevated_switch_display_msg", "Wechseln Sie zum primären Bildschirm, da mehrere Bildschirme im erweiterten Benutzermodus nicht unterstützt werden."),
("Open in new window", "In einem neuen Fenster öffnen"),
("Show displays as individual windows", "Jeden Bildschirm in einem eigenen Fenster anzeigen"),
("Use all my displays for the remote session", "Alle meine Bildschirme für die Fernsitzung verwenden"),
Expand All @@ -570,10 +569,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Enter privacy mode", "Datenschutzmodus aktivieren"),
("Exit privacy mode", "Datenschutzmodus beenden"),
("idd_not_support_under_win10_2004_tip", "Indirekter Grafiktreiber wird nicht unterstützt. Windows 10, Version 2004 oder neuer ist erforderlich."),
("switch_display_elevated_connections_tip", "Das Umschalten auf einen sekundären Bildschirm wird mit erhöhten Rechten nicht unterstützt, wenn mehrere Verbindungen bestehen. Bitte versuchen Sie es nach der Installation erneut, wenn Sie mehrere Bildschirme steuern möchten."),
("input_source_1_tip", "Eingangsquelle 1"),
("input_source_2_tip", "Eingangsquelle 2"),
("capture_display_elevated_connections_tip", "Die Aufnahme von mehreren Bildschirmen wird im erweiterten Benutzermodus nicht unterstützt. Bitte versuchen Sie es nach der Installation erneut, wenn Sie mehrere Bildschirme steuern möchten."),
("Swap control-command key", "Steuerungs- und Befehlstasten tauschen"),
("swap-left-right-mouse", "Linke und rechte Maustaste tauschen"),
("2FA code", "2FA-Code"),
Expand Down Expand Up @@ -627,5 +624,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Volume up", ""),
("Volume down", ""),
("Power", ""),
("Telegram bot", ""),
("enable-bot-tip", ""),
("enable-bot-desc", ""),
].iter().cloned().collect();
}
6 changes: 3 additions & 3 deletions src/lang/el.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,6 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Test", "Δοκιμή"),
("display_is_plugged_out_msg", "Η οθόνη έχει αποσυνδεθεί, επιστρέψτε στην κύρια οθόνη προβολής"),
("No displays", "Δεν υπάρχουν οθόνες"),
("elevated_switch_display_msg", "Δεν επιτρέπονται πολλαπλές οθόνες κατά την σύνδεση με αυξημένα δικαιώματα. Συνδεθείτε στην κύρια οθόνη."),
("Open in new window", "Άνοιγμα σε νέο παράθυρο"),
("Show displays as individual windows", "Εμφάνιση οθονών σε ξεχωριστά παράθυρα"),
("Use all my displays for the remote session", "Χρήση όλων των οθονών της απομακρυσμένης σύνδεσης"),
Expand All @@ -570,10 +569,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Enter privacy mode", "Ενεργοποίηση λειτουργίας απορρήτου"),
("Exit privacy mode", "Διακοπή λειτουργίας απορρήτου"),
("idd_not_support_under_win10_2004_tip", "Το πρόγραμμα οδήγησης έμμεσης οθόνης δεν υποστηρίζεται. Απαιτείτε λειτουργικό σύστημα Windows 10 έκδοση 2004 ή νεότερο."),
("switch_display_elevated_connections_tip", "Αλλαγή σε οθόνη πέρα απο την κύρια δεν υποστηρίζεται σε σύνδεση με αυξημένα δικαιώματα. Αν επιθυμείτε την σύνδεση σε πολλαπλές οθόνες, παρακαλώ εγκαταστήστε την εφαρμογή και δοκιμάστε εκ νέου"),
("input_source_1_tip", "Πηγή εισόδου 1"),
("input_source_2_tip", "Πηγή εισόδου 2"),
("capture_display_elevated_connections_tip", "Η καταγραφή πολλαπλών οθονών δεν υποστηρίζεται σε σύνδεση με αυξημένα δικαιώματα. Αν επιθυμείτε την καταγραφή πολλαπλών οθονών, παρακαλώ εγκαταστήστε την εφαρμογή και δοκιμάστε εκ νέου"),
("Swap control-command key", "Εναλλαγή κουμπιών control-command"),
("swap-left-right-mouse", "Εναλλαγή αριστερό-δεξί κουμπί του ποντικιού"),
("2FA code", "κωδικός 2FA"),
Expand Down Expand Up @@ -627,5 +624,8 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Volume up", ""),
("Volume down", ""),
("Power", ""),
("Telegram bot", ""),
("enable-bot-tip", ""),
("enable-bot-desc", ""),
].iter().cloned().collect();
}
Loading

0 comments on commit 07ac7b4

Please sign in to comment.