We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 726d1ee commit eb5dce3Copy full SHA for eb5dce3
src/main/main.ts
@@ -55,15 +55,19 @@ const setup = async () => {
55
const hideWindow = () => {
56
if (win && win.isVisible()) {
57
win.hide()
58
- app.dock.hide()
+ if (app.dock) {
59
+ app.dock.hide()
60
+ }
61
}
62
63
64
const showWindow = () => {
65
const position = getWindowPosition()
66
67
if (position && win) {
- app.dock.show()
68
69
+ app.dock.show()
70
71
72
// We have to wait a bit because the dock.show() is triggering a "window.hide" event
73
// otherwise the app would be closed immediately
@@ -164,7 +168,9 @@ const createWindow = () => {
164
168
})
165
169
166
170
167
-app.dock.hide()
171
+if (app.dock) {
172
173
+}
174
175
app.on('ready', setup)
176
0 commit comments