{"action":"created","comment":{"url":"https://api.github.com/repos/leecbaker/datareftool/pulls/comments/30859401","id":30859401,"diff_hunk":"@@ -372,6 +386,13 @@ class DatarefViewerWindow {\n \t\tlast_regex = 0 != XPGetWidgetProperty(regex_toggle_button, xpProperty_ButtonState, nullptr);\n \t\tlast_changed = 0 != XPGetWidgetProperty(change_filter_button, xpProperty_ButtonState, nullptr);\n \n+        FILE * pFile;\n+        pFile = fopen (\"./Resources/plugins/DataRefTool/drtpref.txt\",\"w+\");","path":"src/viewer_window.cpp","position":38,"original_position":26,"commit_id":"cfd66f4f82b5b03bcbae8f4af25b5c1e1372f27b","original_commit_id":"049a1141923c0939e10fe5fa3ab9ba7587e841a0","user":{"login":"sparker256","id":1274225,"avatar_url":"https://avatars.githubusercontent.com/u/1274225?v=3","gravatar_id":"","url":"https://api.github.com/users/sparker256","html_url":"https://github.com/sparker256","followers_url":"https://api.github.com/users/sparker256/followers","following_url":"https://api.github.com/users/sparker256/following{/other_user}","gists_url":"https://api.github.com/users/sparker256/gists{/gist_id}","starred_url":"https://api.github.com/users/sparker256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparker256/subscriptions","organizations_url":"https://api.github.com/users/sparker256/orgs","repos_url":"https://api.github.com/users/sparker256/repos","events_url":"https://api.github.com/users/sparker256/events{/privacy}","received_events_url":"https://api.github.com/users/sparker256/received_events","type":"User","site_admin":false},"body":"I like to keep the prefs file in the plugin folder so it does not get lost in the ./Output/preferences folder. It is a method I have used for a long time over all platforms. ","created_at":"2015-05-21T23:46:45Z","updated_at":"2015-05-21T23:46:45Z","html_url":"https://github.com/leecbaker/datareftool/pull/5#discussion_r30859401","pull_request_url":"https://api.github.com/repos/leecbaker/datareftool/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/leecbaker/datareftool/pulls/comments/30859401"},"html":{"href":"https://github.com/leecbaker/datareftool/pull/5#discussion_r30859401"},"pull_request":{"href":"https://api.github.com/repos/leecbaker/datareftool/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/leecbaker/datareftool/pulls/5","id":35054411,"html_url":"https://github.com/leecbaker/datareftool/pull/5","diff_url":"https://github.com/leecbaker/datareftool/pull/5.diff","patch_url":"https://github.com/leecbaker/datareftool/pull/5.patch","issue_url":"https://api.github.com/repos/leecbaker/datareftool/issues/5","number":5,"state":"open","locked":false,"title":"Added saving viewer window status and button status to drtpref.txt file","user":{"login":"sparker256","id":1274225,"avatar_url":"https://avatars.githubusercontent.com/u/1274225?v=3","gravatar_id":"","url":"https://api.github.com/users/sparker256","html_url":"https://github.com/sparker256","followers_url":"https://api.github.com/users/sparker256/followers","following_url":"https://api.github.com/users/sparker256/following{/other_user}","gists_url":"https://api.github.com/users/sparker256/gists{/gist_id}","starred_url":"https://api.github.com/users/sparker256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparker256/subscriptions","organizations_url":"https://api.github.com/users/sparker256/orgs","repos_url":"https://api.github.com/users/sparker256/repos","events_url":"https://api.github.com/users/sparker256/events{/privacy}","received_events_url":"https://api.github.com/users/sparker256/received_events","type":"User","site_admin":false},"body":"Have added feature to save viewer window status and buttons status to drtpref.txt file in ./Resources/plugins/DataRefTool. This will allow DRT to remember where it was when X-Plane shut down. ","created_at":"2015-05-08T23:10:00Z","updated_at":"2015-05-21T23:46:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"abc2ccbbda3f546b1f4c18c444c14c4c49315db2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/leecbaker/datareftool/pulls/5/commits","review_comments_url":"https://api.github.com/repos/leecbaker/datareftool/pulls/5/comments","review_comment_url":"https://api.github.com/repos/leecbaker/datareftool/pulls/comments{/number}","comments_url":"https://api.github.com/repos/leecbaker/datareftool/issues/5/comments","statuses_url":"https://api.github.com/repos/leecbaker/datareftool/statuses/cfd66f4f82b5b03bcbae8f4af25b5c1e1372f27b","head":{"label":"sparker256:master","ref":"master","sha":"cfd66f4f82b5b03bcbae8f4af25b5c1e1372f27b","user":{"login":"sparker256","id":1274225,"avatar_url":"https://avatars.githubusercontent.com/u/1274225?v=3","gravatar_id":"","url":"https://api.github.com/users/sparker256","html_url":"https://github.com/sparker256","followers_url":"https://api.github.com/users/sparker256/followers","following_url":"https://api.github.com/users/sparker256/following{/other_user}","gists_url":"https://api.github.com/users/sparker256/gists{/gist_id}","starred_url":"https://api.github.com/users/sparker256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparker256/subscriptions","organizations_url":"https://api.github.com/users/sparker256/orgs","repos_url":"https://api.github.com/users/sparker256/repos","events_url":"https://api.github.com/users/sparker256/events{/privacy}","received_events_url":"https://api.github.com/users/sparker256/received_events","type":"User","site_admin":false},"repo":{"id":35304249,"name":"datareftool","full_name":"sparker256/datareftool","owner":{"login":"sparker256","id":1274225,"avatar_url":"https://avatars.githubusercontent.com/u/1274225?v=3","gravatar_id":"","url":"https://api.github.com/users/sparker256","html_url":"https://github.com/sparker256","followers_url":"https://api.github.com/users/sparker256/followers","following_url":"https://api.github.com/users/sparker256/following{/other_user}","gists_url":"https://api.github.com/users/sparker256/gists{/gist_id}","starred_url":"https://api.github.com/users/sparker256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparker256/subscriptions","organizations_url":"https://api.github.com/users/sparker256/orgs","repos_url":"https://api.github.com/users/sparker256/repos","events_url":"https://api.github.com/users/sparker256/events{/privacy}","received_events_url":"https://api.github.com/users/sparker256/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sparker256/datareftool","description":"Dataref Tool for X-Plane plugin development","fork":true,"url":"https://api.github.com/repos/sparker256/datareftool","forks_url":"https://api.github.com/repos/sparker256/datareftool/forks","keys_url":"https://api.github.com/repos/sparker256/datareftool/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sparker256/datareftool/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sparker256/datareftool/teams","hooks_url":"https://api.github.com/repos/sparker256/datareftool/hooks","issue_events_url":"https://api.github.com/repos/sparker256/datareftool/issues/events{/number}","events_url":"https://api.github.com/repos/sparker256/datareftool/events","assignees_url":"https://api.github.com/repos/sparker256/datareftool/assignees{/user}","branches_url":"https://api.github.com/repos/sparker256/datareftool/branches{/branch}","tags_url":"https://api.github.com/repos/sparker256/datareftool/tags","blobs_url":"https://api.github.com/repos/sparker256/datareftool/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sparker256/datareftool/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sparker256/datareftool/git/refs{/sha}","trees_url":"https://api.github.com/repos/sparker256/datareftool/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sparker256/datareftool/statuses/{sha}","languages_url":"https://api.github.com/repos/sparker256/datareftool/languages","stargazers_url":"https://api.github.com/repos/sparker256/datareftool/stargazers","contributors_url":"https://api.github.com/repos/sparker256/datareftool/contributors","subscribers_url":"https://api.github.com/repos/sparker256/datareftool/subscribers","subscription_url":"https://api.github.com/repos/sparker256/datareftool/subscription","commits_url":"https://api.github.com/repos/sparker256/datareftool/commits{/sha}","git_commits_url":"https://api.github.com/repos/sparker256/datareftool/git/commits{/sha}","comments_url":"https://api.github.com/repos/sparker256/datareftool/comments{/number}","issue_comment_url":"https://api.github.com/repos/sparker256/datareftool/issues/comments{/number}","contents_url":"https://api.github.com/repos/sparker256/datareftool/contents/{+path}","compare_url":"https://api.github.com/repos/sparker256/datareftool/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sparker256/datareftool/merges","archive_url":"https://api.github.com/repos/sparker256/datareftool/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sparker256/datareftool/downloads","issues_url":"https://api.github.com/repos/sparker256/datareftool/issues{/number}","pulls_url":"https://api.github.com/repos/sparker256/datareftool/pulls{/number}","milestones_url":"https://api.github.com/repos/sparker256/datareftool/milestones{/number}","notifications_url":"https://api.github.com/repos/sparker256/datareftool/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sparker256/datareftool/labels{/name}","releases_url":"https://api.github.com/repos/sparker256/datareftool/releases{/id}","created_at":"2015-05-08T22:13:18Z","updated_at":"2015-05-08T22:13:19Z","pushed_at":"2015-05-21T20:59:55Z","git_url":"git://github.com/sparker256/datareftool.git","ssh_url":"git@github.com:sparker256/datareftool.git","clone_url":"https://github.com/sparker256/datareftool.git","svn_url":"https://github.com/sparker256/datareftool","homepage":null,"size":682,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"leecbaker:master","ref":"master","sha":"3e3284069bdb64c53ff6a4e3a069e3974050e3f6","user":{"login":"leecbaker","id":1047159,"avatar_url":"https://avatars.githubusercontent.com/u/1047159?v=3","gravatar_id":"","url":"https://api.github.com/users/leecbaker","html_url":"https://github.com/leecbaker","followers_url":"https://api.github.com/users/leecbaker/followers","following_url":"https://api.github.com/users/leecbaker/following{/other_user}","gists_url":"https://api.github.com/users/leecbaker/gists{/gist_id}","starred_url":"https://api.github.com/users/leecbaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leecbaker/subscriptions","organizations_url":"https://api.github.com/users/leecbaker/orgs","repos_url":"https://api.github.com/users/leecbaker/repos","events_url":"https://api.github.com/users/leecbaker/events{/privacy}","received_events_url":"https://api.github.com/users/leecbaker/received_events","type":"User","site_admin":false},"repo":{"id":29484885,"name":"datareftool","full_name":"leecbaker/datareftool","owner":{"login":"leecbaker","id":1047159,"avatar_url":"https://avatars.githubusercontent.com/u/1047159?v=3","gravatar_id":"","url":"https://api.github.com/users/leecbaker","html_url":"https://github.com/leecbaker","followers_url":"https://api.github.com/users/leecbaker/followers","following_url":"https://api.github.com/users/leecbaker/following{/other_user}","gists_url":"https://api.github.com/users/leecbaker/gists{/gist_id}","starred_url":"https://api.github.com/users/leecbaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leecbaker/subscriptions","organizations_url":"https://api.github.com/users/leecbaker/orgs","repos_url":"https://api.github.com/users/leecbaker/repos","events_url":"https://api.github.com/users/leecbaker/events{/privacy}","received_events_url":"https://api.github.com/users/leecbaker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leecbaker/datareftool","description":"Dataref Tool for X-Plane plugin development","fork":false,"url":"https://api.github.com/repos/leecbaker/datareftool","forks_url":"https://api.github.com/repos/leecbaker/datareftool/forks","keys_url":"https://api.github.com/repos/leecbaker/datareftool/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leecbaker/datareftool/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leecbaker/datareftool/teams","hooks_url":"https://api.github.com/repos/leecbaker/datareftool/hooks","issue_events_url":"https://api.github.com/repos/leecbaker/datareftool/issues/events{/number}","events_url":"https://api.github.com/repos/leecbaker/datareftool/events","assignees_url":"https://api.github.com/repos/leecbaker/datareftool/assignees{/user}","branches_url":"https://api.github.com/repos/leecbaker/datareftool/branches{/branch}","tags_url":"https://api.github.com/repos/leecbaker/datareftool/tags","blobs_url":"https://api.github.com/repos/leecbaker/datareftool/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leecbaker/datareftool/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leecbaker/datareftool/git/refs{/sha}","trees_url":"https://api.github.com/repos/leecbaker/datareftool/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leecbaker/datareftool/statuses/{sha}","languages_url":"https://api.github.com/repos/leecbaker/datareftool/languages","stargazers_url":"https://api.github.com/repos/leecbaker/datareftool/stargazers","contributors_url":"https://api.github.com/repos/leecbaker/datareftool/contributors","subscribers_url":"https://api.github.com/repos/leecbaker/datareftool/subscribers","subscription_url":"https://api.github.com/repos/leecbaker/datareftool/subscription","commits_url":"https://api.github.com/repos/leecbaker/datareftool/commits{/sha}","git_commits_url":"https://api.github.com/repos/leecbaker/datareftool/git/commits{/sha}","comments_url":"https://api.github.com/repos/leecbaker/datareftool/comments{/number}","issue_comment_url":"https://api.github.com/repos/leecbaker/datareftool/issues/comments{/number}","contents_url":"https://api.github.com/repos/leecbaker/datareftool/contents/{+path}","compare_url":"https://api.github.com/repos/leecbaker/datareftool/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leecbaker/datareftool/merges","archive_url":"https://api.github.com/repos/leecbaker/datareftool/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leecbaker/datareftool/downloads","issues_url":"https://api.github.com/repos/leecbaker/datareftool/issues{/number}","pulls_url":"https://api.github.com/repos/leecbaker/datareftool/pulls{/number}","milestones_url":"https://api.github.com/repos/leecbaker/datareftool/milestones{/number}","notifications_url":"https://api.github.com/repos/leecbaker/datareftool/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leecbaker/datareftool/labels{/name}","releases_url":"https://api.github.com/repos/leecbaker/datareftool/releases{/id}","created_at":"2015-01-19T18:23:22Z","updated_at":"2015-05-09T20:44:49Z","pushed_at":"2015-05-21T20:59:56Z","git_url":"git://github.com/leecbaker/datareftool.git","ssh_url":"git@github.com:leecbaker/datareftool.git","clone_url":"https://github.com/leecbaker/datareftool.git","svn_url":"https://github.com/leecbaker/datareftool","homepage":null,"size":896,"stargazers_count":4,"watchers_count":4,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/leecbaker/datareftool/pulls/5"},"html":{"href":"https://github.com/leecbaker/datareftool/pull/5"},"issue":{"href":"https://api.github.com/repos/leecbaker/datareftool/issues/5"},"comments":{"href":"https://api.github.com/repos/leecbaker/datareftool/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/leecbaker/datareftool/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/leecbaker/datareftool/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/leecbaker/datareftool/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/leecbaker/datareftool/statuses/cfd66f4f82b5b03bcbae8f4af25b5c1e1372f27b"}}}}