mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-03 13:56:25 +00:00
Really close window on Mac. Show it when clicking on dock.
This commit is contained in:
parent
75f2056442
commit
60cc154576
2 changed files with 4 additions and 5 deletions
|
|
@ -460,6 +460,10 @@ bool App::event (QEvent *event) {
|
|||
}
|
||||
|
||||
Cli::executeCommand(url);
|
||||
}else if(event->type() == QEvent::ApplicationStateChange){
|
||||
auto state = static_cast<QApplicationStateChangeEvent*>(event);
|
||||
if( state->applicationState() == Qt::ApplicationActive)
|
||||
smartShowWindow(getMainWindow());
|
||||
}
|
||||
|
||||
return SingleApplication::event(event);
|
||||
|
|
|
|||
|
|
@ -41,11 +41,6 @@ function handleClosing (close) {
|
|||
Qt.quit()
|
||||
return
|
||||
}
|
||||
|
||||
if (Qt.platform.os === 'osx') {
|
||||
close.accepted = false
|
||||
window.showMinimized()
|
||||
}
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue