Commit 1a65d8a
committed
fix(macOS): hide dock icon when closing settings with ⌘+W
The ⌘+W shortcut was connected to QDialog::accept(), which internally
calls hide() and emits QEvent::Hide. The ForegroundBackground event
filter only listens for QEvent::Close, so the dock icon remained visible.
Clicking the window's close button works correctly because it sends
QEvent::Close directly.
Connecting the shortcut to close() instead of accept() ensures
QEvent::Close is sent, making ⌘+W behave identically to the close
button: the event filter fires, ToBackground() is called, and the dock
icon disappears.
Signed-off-by: Iva Horn <iva.horn@nextcloud.com>1 parent 8884ce7 commit 1a65d8a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
0 commit comments