We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3afcc8e commit b2f0951Copy full SHA for b2f0951
src/main/index.js
@@ -1052,7 +1052,16 @@ function runApp() {
1052
1053
newWindow.on('minimize', () => {
1054
if (trayOnMinimize) {
1055
- newWindow.hide()
+ // Workaround for https://github.com/electron/electron/issues/49253
1056
+ if (process.platform !== 'linux') {
1057
+ newWindow.hide()
1058
+ } else {
1059
+ setTimeout(() => {
1060
+ newWindow.restore()
1061
1062
+ }, 100)
1063
+ }
1064
+
1065
manageTray(newWindow)
1066
1067
if (newWindow === mainWindow) {
0 commit comments