{"action":"created","issue":{"url":"https://api.github.com/repos/electron/electron/issues/526","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/526/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/526/comments","events_url":"https://api.github.com/repos/electron/electron/issues/526/events","html_url":"https://github.com/electron/electron/issues/526","id":38963705,"number":526,"title":"Save / restore window state","user":{"login":"quasado","id":2025836,"avatar_url":"https://avatars.githubusercontent.com/u/2025836?v=3","gravatar_id":"","url":"https://api.github.com/users/quasado","html_url":"https://github.com/quasado","followers_url":"https://api.github.com/users/quasado/followers","following_url":"https://api.github.com/users/quasado/following{/other_user}","gists_url":"https://api.github.com/users/quasado/gists{/gist_id}","starred_url":"https://api.github.com/users/quasado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quasado/subscriptions","organizations_url":"https://api.github.com/users/quasado/orgs","repos_url":"https://api.github.com/users/quasado/repos","events_url":"https://api.github.com/users/quasado/events{/privacy}","received_events_url":"https://api.github.com/users/quasado/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2014-07-29T07:12:45Z","updated_at":"2016-09-15T10:24:19Z","closed_at":"2014-07-29T15:02:21Z","body":"Is there any API to save/restore the window's size / state / position? If not, what's the advised approach to do so?"},"comment":{"url":"https://api.github.com/repos/electron/electron/issues/comments/247291739","html_url":"https://github.com/electron/electron/issues/526#issuecomment-247291739","issue_url":"https://api.github.com/repos/electron/electron/issues/526","id":247291739,"user":{"login":"andymartinwork","id":1785253,"avatar_url":"https://avatars.githubusercontent.com/u/1785253?v=3","gravatar_id":"","url":"https://api.github.com/users/andymartinwork","html_url":"https://github.com/andymartinwork","followers_url":"https://api.github.com/users/andymartinwork/followers","following_url":"https://api.github.com/users/andymartinwork/following{/other_user}","gists_url":"https://api.github.com/users/andymartinwork/gists{/gist_id}","starred_url":"https://api.github.com/users/andymartinwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andymartinwork/subscriptions","organizations_url":"https://api.github.com/users/andymartinwork/orgs","repos_url":"https://api.github.com/users/andymartinwork/repos","events_url":"https://api.github.com/users/andymartinwork/events{/privacy}","received_events_url":"https://api.github.com/users/andymartinwork/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T10:24:19Z","updated_at":"2016-09-15T10:24:19Z","body":"Just for future visitors to this bug\r\n\r\nThe code above does not take into account if the app is \r\n\r\n* saved on an external monitor\r\n* quit\r\n* external monitor disconnected\r\n* app opened again\r\n\r\nYou can quite often end up with the app being off the end of the screen (dependent on zoom factor). So something more complicated is necessary for a professional implementation."}}
{"actor":{"display_login":"andymartinwork"}}