{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/12497","repository_url":"https://api.github.com/repos/atom/atom","labels_url":"https://api.github.com/repos/atom/atom/issues/12497/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/12497/comments","events_url":"https://api.github.com/repos/atom/atom/issues/12497/events","html_url":"https://github.com/atom/atom/issues/12497","id":172436585,"number":12497,"title":"macOS: When Atom window is closed and re-opened, the app completely rerenders","user":{"login":"FezVrasta","id":5382443,"avatar_url":"https://avatars.githubusercontent.com/u/5382443?v=3","gravatar_id":"","url":"https://api.github.com/users/FezVrasta","html_url":"https://github.com/FezVrasta","followers_url":"https://api.github.com/users/FezVrasta/followers","following_url":"https://api.github.com/users/FezVrasta/following{/other_user}","gists_url":"https://api.github.com/users/FezVrasta/gists{/gist_id}","starred_url":"https://api.github.com/users/FezVrasta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FezVrasta/subscriptions","organizations_url":"https://api.github.com/users/FezVrasta/orgs","repos_url":"https://api.github.com/users/FezVrasta/repos","events_url":"https://api.github.com/users/FezVrasta/events{/privacy}","received_events_url":"https://api.github.com/users/FezVrasta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-22T12:07:31Z","updated_at":"2016-08-24T13:17:48Z","closed_at":null,"body":"### Prerequisites\r\n\r\n* [x] Can you reproduce the problem in [safe mode](http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode)?\r\n* [x] Are you running the [latest version of Atom](http://flight-manual.atom.io/hacking-atom/sections/debugging/#update-to-the-latest-version)?\r\n* [x] Did you check the [debugging guide](http://flight-manual.atom.io/hacking-atom/sections/debugging/)?\r\n* [x] Did you check the [FAQs on Discuss](https://discuss.atom.io/c/faq)?\r\n* [x] Are you reporting to the [correct repository](https://github.com/atom/atom/blob/master/CONTRIBUTING.md#atom-and-packages)?\r\n* [x] Did you [perform a cursory search](https://github.com/issues?q=is%3Aissue+user%3Aatom+-repo%3Aatom%2Felectron) to see if your bug or enhancement is already reported?\r\n\r\n### Description\r\n\r\nEverytime the Atom window is opened, it re-renders the whole UI. This is in contrast with the behavior of all the other macOS applications.  \r\nUsually when you close an application with the red button and then you re-open it from Dock, the UI is instantly available exactly as you left it when the window was closed.\r\nSeems like there are two different problems:\r\n\r\n1. The UI completely re-renders on window open\r\n2. The window state is not preserved when the window is re-opened\r\n\r\nLogically I have not checked \"Open empty editor on start\".\r\n\r\n### Steps to Reproduce\r\n\r\n1. Open an Atom's window\r\n2. Open a project, a file, a tab, whatever\r\n3. Close the opened Atom's window using the red button\r\n4. Click on the Atom icon in the Dock to re-open the window\r\n\r\n**Expected behavior:** The window is instantly re-opened and I can continue from where I left.\r\n\r\n**Actual behavior:** The window is created from scratch, takes several seconds to render its content, and once rendered, I have to reopen the tab/project I was using before I closed it.\r\n\r\n### Versions\r\n```\r\n~$ atom --version\r\nAtom    : 1.11.0-dev-579e6b2\r\nElectron: 0.37.8\r\nChrome  : 49.0.2623.75\r\nNode    : 5.10.0\r\n~$ apm --version\r\napm  1.12.5\r\nnpm  3.10.5\r\nnode 4.4.5\r\npython 2.7.12\r\ngit 2.9.2\r\n```\r\n\r\nThe same problem happens with all the Atom versions"},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/242059818","html_url":"https://github.com/atom/atom/issues/12497#issuecomment-242059818","issue_url":"https://api.github.com/repos/atom/atom/issues/12497","id":242059818,"user":{"login":"yuanwhy","id":4101682,"avatar_url":"https://avatars.githubusercontent.com/u/4101682?v=3","gravatar_id":"","url":"https://api.github.com/users/yuanwhy","html_url":"https://github.com/yuanwhy","followers_url":"https://api.github.com/users/yuanwhy/followers","following_url":"https://api.github.com/users/yuanwhy/following{/other_user}","gists_url":"https://api.github.com/users/yuanwhy/gists{/gist_id}","starred_url":"https://api.github.com/users/yuanwhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuanwhy/subscriptions","organizations_url":"https://api.github.com/users/yuanwhy/orgs","repos_url":"https://api.github.com/users/yuanwhy/repos","events_url":"https://api.github.com/users/yuanwhy/events{/privacy}","received_events_url":"https://api.github.com/users/yuanwhy/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T13:17:47Z","updated_at":"2016-08-24T13:17:47Z","body":"I fixed the bug https://github.com/atom/atom/pull/12486,\r\n@50Wliu could you review this code when you get a chance? I tested it on macOS and  everything seemed ok."}}
{"actor":{"display_login":"yuanwhy"}}