mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-17 09:51:28 +03:00
feat: tray logic in windows
This commit is contained in:
@@ -399,7 +399,15 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
||||
@override
|
||||
void onTrayIconMouseDown() {
|
||||
windowManager.show();
|
||||
windowManager.focus();
|
||||
}
|
||||
|
||||
@override
|
||||
void onTrayIconRightMouseDown() {
|
||||
// linux does not support popup menu manually.
|
||||
// linux will handle popup action ifself.
|
||||
if (Platform.isMacOS || Platform.isWindows) {
|
||||
trayManager.popUpContextMenu();
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user