{"action":"created","issue":{"url":"https://api.github.com/repos/sqlitebrowser/sqlitebrowser/issues/666","repository_url":"https://api.github.com/repos/sqlitebrowser/sqlitebrowser","labels_url":"https://api.github.com/repos/sqlitebrowser/sqlitebrowser/issues/666/labels{/name}","comments_url":"https://api.github.com/repos/sqlitebrowser/sqlitebrowser/issues/666/comments","events_url":"https://api.github.com/repos/sqlitebrowser/sqlitebrowser/issues/666/events","html_url":"https://github.com/sqlitebrowser/sqlitebrowser/pull/666","id":166815221,"number":666,"title":"Load window settings at the start of init","user":{"login":"innermous","id":8950786,"avatar_url":"https://avatars.githubusercontent.com/u/8950786?v=3","gravatar_id":"","url":"https://api.github.com/users/innermous","html_url":"https://github.com/innermous","followers_url":"https://api.github.com/users/innermous/followers","following_url":"https://api.github.com/users/innermous/following{/other_user}","gists_url":"https://api.github.com/users/innermous/gists{/gist_id}","starred_url":"https://api.github.com/users/innermous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/innermous/subscriptions","organizations_url":"https://api.github.com/users/innermous/orgs","repos_url":"https://api.github.com/users/innermous/repos","events_url":"https://api.github.com/users/innermous/events{/privacy}","received_events_url":"https://api.github.com/users/innermous/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-21T13:10:39Z","updated_at":"2016-07-21T13:13:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sqlitebrowser/sqlitebrowser/pulls/666","html_url":"https://github.com/sqlitebrowser/sqlitebrowser/pull/666","diff_url":"https://github.com/sqlitebrowser/sqlitebrowser/pull/666.diff","patch_url":"https://github.com/sqlitebrowser/sqlitebrowser/pull/666.patch"},"body":"I suggest to load preferences right in the very beginning of init method.\r\nParticularly in case of #664 \r\n```cpp\r\nrestoreState(PreferencesDialog::getSettingsValue(\"MainWindow\", \"windowState\").toByteArray());\r\n```\r\ncode is running after\r\n```\r\nui->dockEditWindow->hide();     // Hidden by default\r\n```\r\nwhich is not cool :smile: \r\n\r\nThis PR fixes the issue  I addressed in this [comment](https://github.com/sqlitebrowser/sqlitebrowser/issues/664#issuecomment-234241829), but I believe, this will fix the #664 itself.\r\nTest this, please, and tell if it works.\r\n"},"comment":{"url":"https://api.github.com/repos/sqlitebrowser/sqlitebrowser/issues/comments/234248962","html_url":"https://github.com/sqlitebrowser/sqlitebrowser/pull/666#issuecomment-234248962","issue_url":"https://api.github.com/repos/sqlitebrowser/sqlitebrowser/issues/666","id":234248962,"user":{"login":"justinclift","id":406299,"avatar_url":"https://avatars.githubusercontent.com/u/406299?v=3","gravatar_id":"","url":"https://api.github.com/users/justinclift","html_url":"https://github.com/justinclift","followers_url":"https://api.github.com/users/justinclift/followers","following_url":"https://api.github.com/users/justinclift/following{/other_user}","gists_url":"https://api.github.com/users/justinclift/gists{/gist_id}","starred_url":"https://api.github.com/users/justinclift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinclift/subscriptions","organizations_url":"https://api.github.com/users/justinclift/orgs","repos_url":"https://api.github.com/users/justinclift/repos","events_url":"https://api.github.com/users/justinclift/events{/privacy}","received_events_url":"https://api.github.com/users/justinclift/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T13:13:39Z","updated_at":"2016-07-21T13:13:39Z","body":"Cool, this definitely makes sense.  I'll test it here in a few minutes. :smile:"}}
{"actor":{"display_login":"justinclift"}}