feat: add DockClicker event filter

Add an event filter to `qApp` that can detect a dock icon click (in macos) when the main window is hidden or closed.

When the event has been triggered, the main window will be shown again.

Co-authored-by: Boris Melnik <82511785+borismelnik@users.noreply.github.com>
This commit is contained in:
Eric Mastro 2021-05-04 17:44:39 +10:00 committed by Iuri Matias
parent 46caa67d49
commit 29ac475385
3 changed files with 3 additions and 2 deletions

View File

@ -82,6 +82,7 @@ proc mainProc() =
let engine = newQQmlApplicationEngine()
engine.addImportPath("qrc:/./StatusQ/src")
engine.setNetworkAccessManagerFactory(networkAccessFactory)
app.installEventFilter(engine)
let netAccMgr = newQNetworkAccessManager(engine.getNetworkAccessManager())

2
vendor/DOtherSide vendored

@ -1 +1 @@
Subproject commit 25e70373f8558a20132cd3a344c2c2ab5ea041a3
Subproject commit 4e3964099892410a986ffe5be2304fcad32d1060

2
vendor/nimqml vendored

@ -1 +1 @@
Subproject commit 6776fed33f64e3c2464cef4b9af0f7a868e89257
Subproject commit 65fa68c244fa52037de652520755430ec65c77df