{"action":"created","issue":{"url":"https://api.github.com/repos/sebbrudzinski/Open-LaTeX-Studio/issues/104","repository_url":"https://api.github.com/repos/sebbrudzinski/Open-LaTeX-Studio","labels_url":"https://api.github.com/repos/sebbrudzinski/Open-LaTeX-Studio/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/sebbrudzinski/Open-LaTeX-Studio/issues/104/comments","events_url":"https://api.github.com/repos/sebbrudzinski/Open-LaTeX-Studio/issues/104/events","html_url":"https://github.com/sebbrudzinski/Open-LaTeX-Studio/pull/104","id":152803681,"number":104,"title":"Issue #100 Add warning when trying to open file/template with unsaved changes","user":{"login":"aQaTL","id":17130832,"avatar_url":"https://avatars.githubusercontent.com/u/17130832?v=3","gravatar_id":"","url":"https://api.github.com/users/aQaTL","html_url":"https://github.com/aQaTL","followers_url":"https://api.github.com/users/aQaTL/followers","following_url":"https://api.github.com/users/aQaTL/following{/other_user}","gists_url":"https://api.github.com/users/aQaTL/gists{/gist_id}","starred_url":"https://api.github.com/users/aQaTL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aQaTL/subscriptions","organizations_url":"https://api.github.com/users/aQaTL/orgs","repos_url":"https://api.github.com/users/aQaTL/repos","events_url":"https://api.github.com/users/aQaTL/events{/privacy}","received_events_url":"https://api.github.com/users/aQaTL/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-05-03T15:30:47Z","updated_at":"2016-06-25T18:40:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sebbrudzinski/Open-LaTeX-Studio/pulls/104","html_url":"https://github.com/sebbrudzinski/Open-LaTeX-Studio/pull/104","diff_url":"https://github.com/sebbrudzinski/Open-LaTeX-Studio/pull/104.diff","patch_url":"https://github.com/sebbrudzinski/Open-LaTeX-Studio/pull/104.patch"},"body":"As you requested, I am opening a pull request. \r\n\r\nI created an canOpen() method, that returns CanOpenState Enum. This method shows a warning, when user tries to open a file or template and modified boolean is set to true (in EditorTopComponent class). I had to move open and save methods to separate class (FileActions for local files and DbxFileActions for remote files) to avoid redundancy. \r\n\r\nNote that, when user opens a file from dropbox and clicks to save, it invokes saveProgress() for dropbox file. Plus, when user made a changes to dropbox file and tries to open a template or local file and clicks a save it invokes saveFile() for local file. So dropbox and local files are working separately.\r\n![savechangeswarning](https://cloud.githubusercontent.com/assets/17130832/14988571/bae5761e-1154-11e6-9d73-1c0c172c80c0.png)\r\n"},"comment":{"url":"https://api.github.com/repos/sebbrudzinski/Open-LaTeX-Studio/issues/comments/228564210","html_url":"https://github.com/sebbrudzinski/Open-LaTeX-Studio/pull/104#issuecomment-228564210","issue_url":"https://api.github.com/repos/sebbrudzinski/Open-LaTeX-Studio/issues/104","id":228564210,"user":{"login":"sebbrudzinski","id":8852946,"avatar_url":"https://avatars.githubusercontent.com/u/8852946?v=3","gravatar_id":"","url":"https://api.github.com/users/sebbrudzinski","html_url":"https://github.com/sebbrudzinski","followers_url":"https://api.github.com/users/sebbrudzinski/followers","following_url":"https://api.github.com/users/sebbrudzinski/following{/other_user}","gists_url":"https://api.github.com/users/sebbrudzinski/gists{/gist_id}","starred_url":"https://api.github.com/users/sebbrudzinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebbrudzinski/subscriptions","organizations_url":"https://api.github.com/users/sebbrudzinski/orgs","repos_url":"https://api.github.com/users/sebbrudzinski/repos","events_url":"https://api.github.com/users/sebbrudzinski/events{/privacy}","received_events_url":"https://api.github.com/users/sebbrudzinski/received_events","type":"User","site_admin":false},"created_at":"2016-06-25T18:40:56Z","updated_at":"2016-06-25T18:40:56Z","body":"@aQaTL I've left one minor comment. I don't quite like that we need to create the FileActions object manually each time, but that's a separate issue and I created a ticket for that. I'll start the testing once the comment is fixed."}}
{"actor":{"display_login":"sebbrudzinski"}}