{"action":"created","issue":{"url":"https://api.github.com/repos/OSCModulator/oscmodulator/issues/47","labels_url":"https://api.github.com/repos/OSCModulator/oscmodulator/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/OSCModulator/oscmodulator/issues/47/comments","events_url":"https://api.github.com/repos/OSCModulator/oscmodulator/issues/47/events","html_url":"https://github.com/OSCModulator/oscmodulator/pull/47","id":66471059,"number":47,"title":"Autoload the last used session","user":{"login":"dansomething","id":92310,"avatar_url":"https://avatars.githubusercontent.com/u/92310?v=3","gravatar_id":"","url":"https://api.github.com/users/dansomething","html_url":"https://github.com/dansomething","followers_url":"https://api.github.com/users/dansomething/followers","following_url":"https://api.github.com/users/dansomething/following{/other_user}","gists_url":"https://api.github.com/users/dansomething/gists{/gist_id}","starred_url":"https://api.github.com/users/dansomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dansomething/subscriptions","organizations_url":"https://api.github.com/users/dansomething/orgs","repos_url":"https://api.github.com/users/dansomething/repos","events_url":"https://api.github.com/users/dansomething/events{/privacy}","received_events_url":"https://api.github.com/users/dansomething/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-05T18:59:57Z","updated_at":"2015-04-06T04:01:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OSCModulator/oscmodulator/pulls/47","html_url":"https://github.com/OSCModulator/oscmodulator/pull/47","diff_url":"https://github.com/OSCModulator/oscmodulator/pull/47.diff","patch_url":"https://github.com/OSCModulator/oscmodulator/pull/47.patch"},"body":"Autoload the last session that was open when the app exited. This also adds autosave for sessions named \"Untitled\" or \"autosave*\". \r\n\r\n@soulfresh I'm not sure if its desirable to autosave sessions that have already been autosaved or if it should just be for any \"Untitled\" session that was edited and not saved before exiting. Please give this branch a try and let me know what you think about the behavior when quitting the app with unsaved changes."},"comment":{"url":"https://api.github.com/repos/OSCModulator/oscmodulator/issues/comments/89912065","html_url":"https://github.com/OSCModulator/oscmodulator/pull/47#issuecomment-89912065","issue_url":"https://api.github.com/repos/OSCModulator/oscmodulator/issues/47","id":89912065,"user":{"login":"soulfresh","id":3633031,"avatar_url":"https://avatars.githubusercontent.com/u/3633031?v=3","gravatar_id":"","url":"https://api.github.com/users/soulfresh","html_url":"https://github.com/soulfresh","followers_url":"https://api.github.com/users/soulfresh/followers","following_url":"https://api.github.com/users/soulfresh/following{/other_user}","gists_url":"https://api.github.com/users/soulfresh/gists{/gist_id}","starred_url":"https://api.github.com/users/soulfresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soulfresh/subscriptions","organizations_url":"https://api.github.com/users/soulfresh/orgs","repos_url":"https://api.github.com/users/soulfresh/repos","events_url":"https://api.github.com/users/soulfresh/events{/privacy}","received_events_url":"https://api.github.com/users/soulfresh/received_events","type":"User","site_admin":false},"created_at":"2015-04-06T04:01:00Z","updated_at":"2015-04-06T04:01:00Z","body":"I just realized this might take a little refactoring to get working. The presets are currently managed by the presets directive. Since it's a directive, you probably won't have easy access to it's scope. We should move all the logic for managing presets into a service that you can access when you're saving the session. Then the preset directive can be as simple as calling the correct methods on the service."}}