https://github.com/rustdesk/rustdesk/issues/77 mac tray, still no find good way to open rustdesk from finder after tray

shown
This commit is contained in:
rustdesk
2022-04-28 21:32:44 +08:00
parent de44e45ed6
commit c1f5c20e94
13 changed files with 631 additions and 125 deletions

View File

@@ -744,11 +744,12 @@ $(body).content(<App />);
function self.closing() {
// return false; // can prevent window close
var (x, y, w, h) = view.box(#rectw, #border, #screen);
handler.save_size(x, y, w, h);
if (is_osx) {
handler.closing(x, y, w, h);
if (is_osx && handler.get_local_option("service-as-tray") != "Y") {
view.windowState = View.WINDOW_HIDDEN;
return false;
}
return true;
}
function self.ready() {