{"action":"opened","issue":{"url":"https://api.github.com/repos/meetfranz/plugins/issues/41","repository_url":"https://api.github.com/repos/meetfranz/plugins","labels_url":"https://api.github.com/repos/meetfranz/plugins/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/meetfranz/plugins/issues/41/comments","events_url":"https://api.github.com/repos/meetfranz/plugins/issues/41/events","html_url":"https://github.com/meetfranz/plugins/issues/41","id":178550897,"number":41,"title":"hide window when closing/minimizing","user":{"login":"nerijus","id":591932,"avatar_url":"https://avatars.githubusercontent.com/u/591932?v=3","gravatar_id":"","url":"https://api.github.com/users/nerijus","html_url":"https://github.com/nerijus","followers_url":"https://api.github.com/users/nerijus/followers","following_url":"https://api.github.com/users/nerijus/following{/other_user}","gists_url":"https://api.github.com/users/nerijus/gists{/gist_id}","starred_url":"https://api.github.com/users/nerijus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nerijus/subscriptions","organizations_url":"https://api.github.com/users/nerijus/orgs","repos_url":"https://api.github.com/users/nerijus/repos","events_url":"https://api.github.com/users/nerijus/events{/privacy}","received_events_url":"https://api.github.com/users/nerijus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-22T08:31:46Z","updated_at":"2016-09-22T08:31:46Z","closed_at":null,"body":"First sorry for posting here, but I did not find where to put feature requests for Franz.\r\nI'd like app to hide to tray when I minimize or close it. I used the following code in another Electron app:\r\n```\r\n    mainWindow.on('minimize', function(ev) {\r\n      ev.preventDefault()\r\n        mainWindow.hide();\r\n    });\r\n\r\n     return mainWindow.on('close', function(ev) {\r\n        if (!global.forceClose) {\r\n          ev.preventDefault();\r\n          mainWindow.hide();\r\n          return;\r\n        }\r\n```\r\nI use Window Maker on Linux, and minimizing or closing Franz window leaves the minimized icon at the bottom of the desktop."}}
{"actor":{"display_login":"nerijus"}}