{"action":"created","issue":{"url":"https://api.github.com/repos/NebulousLabs/Sia-UI/issues/214","repository_url":"https://api.github.com/repos/NebulousLabs/Sia-UI","labels_url":"https://api.github.com/repos/NebulousLabs/Sia-UI/issues/214/labels{/name}","comments_url":"https://api.github.com/repos/NebulousLabs/Sia-UI/issues/214/comments","events_url":"https://api.github.com/repos/NebulousLabs/Sia-UI/issues/214/events","html_url":"https://github.com/NebulousLabs/Sia-UI/pull/214","id":134196103,"number":214,"title":"UI exit handling from the tray","user":{"login":"johnathanhowell","id":8183920,"avatar_url":"https://avatars.githubusercontent.com/u/8183920?v=3","gravatar_id":"","url":"https://api.github.com/users/johnathanhowell","html_url":"https://github.com/johnathanhowell","followers_url":"https://api.github.com/users/johnathanhowell/followers","following_url":"https://api.github.com/users/johnathanhowell/following{/other_user}","gists_url":"https://api.github.com/users/johnathanhowell/gists{/gist_id}","starred_url":"https://api.github.com/users/johnathanhowell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnathanhowell/subscriptions","organizations_url":"https://api.github.com/users/johnathanhowell/orgs","repos_url":"https://api.github.com/users/johnathanhowell/repos","events_url":"https://api.github.com/users/johnathanhowell/events{/privacy}","received_events_url":"https://api.github.com/users/johnathanhowell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-02-17T06:50:47Z","updated_at":"2016-02-17T17:47:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/NebulousLabs/Sia-UI/pulls/214","html_url":"https://github.com/NebulousLabs/Sia-UI/pull/214","diff_url":"https://github.com/NebulousLabs/Sia-UI/pull/214.diff","patch_url":"https://github.com/NebulousLabs/Sia-UI/pull/214.patch"},"body":"The mainWindow.close event is now overridden and mainWindow.minimize() is called instead.  The only way to quit the application is through the tray menu, all other calls to mainWindow.close() (cmd-Q, the x button, etc) minimize the main window instead.  There is not currently a confirmation dialog.  The previous behavior with config.siad.detached remains intact: quitting the application will not kill siad if this flag is set."},"comment":{"url":"https://api.github.com/repos/NebulousLabs/Sia-UI/issues/comments/185322441","html_url":"https://github.com/NebulousLabs/Sia-UI/pull/214#issuecomment-185322441","issue_url":"https://api.github.com/repos/NebulousLabs/Sia-UI/issues/214","id":185322441,"user":{"login":"VoidingWarranties","id":5420909,"avatar_url":"https://avatars.githubusercontent.com/u/5420909?v=3","gravatar_id":"","url":"https://api.github.com/users/VoidingWarranties","html_url":"https://github.com/VoidingWarranties","followers_url":"https://api.github.com/users/VoidingWarranties/followers","following_url":"https://api.github.com/users/VoidingWarranties/following{/other_user}","gists_url":"https://api.github.com/users/VoidingWarranties/gists{/gist_id}","starred_url":"https://api.github.com/users/VoidingWarranties/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VoidingWarranties/subscriptions","organizations_url":"https://api.github.com/users/VoidingWarranties/orgs","repos_url":"https://api.github.com/users/VoidingWarranties/repos","events_url":"https://api.github.com/users/VoidingWarranties/events{/privacy}","received_events_url":"https://api.github.com/users/VoidingWarranties/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T17:47:22Z","updated_at":"2016-02-17T17:47:22Z","body":"I'm worried that clicking the \"x\" and seeing the window be minimized isn't what the user would expect. The way other applications handle this UX (at least on OS X) is to have the main window be closeable, but able to run without a main window. In other words, when the user clicks the x, the window dissapears but the application continues running and still appears in the system tray and taskbar / dock. The window appears again when the user clicks the app's icon either in the system tray, or taskbar / dock.\r\n\r\nI would also hesitate to replace the OS chrome with our own. The standard location for close / minimize buttons in windows in on the right hand side of the window, but on OS X the standard is on the left. Is it possible to disable the OS close button but leave the OS minimize button enabled? That way there's no need to override `mainWindow.close`, and no need to change any of the calls to `mainWindow.close` to `mainWindow.minimize`."}}