{"action":"created","comment":{"url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/comments/23139486","id":23139486,"diff_hunk":"@@ -889,6 +889,10 @@ private void WorkspaceAdded(WorkspaceModel item)\n         private void WorkspaceRemoved(WorkspaceModel item)\n         {\n             workspaces.Remove(workspaces.First(x => x.Model == item));\n+\n+            // If a workspace is removed, reset this property to false \n+            // so that Run Automatic checkbox is unchecked by default\n+            DynamicRunEnabled = false;","path":"src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs","position":16,"original_position":16,"commit_id":"f53c621b4d1c39add852ee253e926d66aa1931cd","original_commit_id":"f53c621b4d1c39add852ee253e926d66aa1931cd","user":{"login":"Benglin","id":5086849,"avatar_url":"https://avatars.githubusercontent.com/u/5086849?v=3","gravatar_id":"","url":"https://api.github.com/users/Benglin","html_url":"https://github.com/Benglin","followers_url":"https://api.github.com/users/Benglin/followers","following_url":"https://api.github.com/users/Benglin/following{/other_user}","gists_url":"https://api.github.com/users/Benglin/gists{/gist_id}","starred_url":"https://api.github.com/users/Benglin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Benglin/subscriptions","organizations_url":"https://api.github.com/users/Benglin/orgs","repos_url":"https://api.github.com/users/Benglin/repos","events_url":"https://api.github.com/users/Benglin/events{/privacy}","received_events_url":"https://api.github.com/users/Benglin/received_events","type":"User","site_admin":false},"body":"Let's not do this because by right the value that you set `DynamicRunEnabled` to, should be the value of `HomeSpace.DynamicRunEnabled`. If the `HomeSpace` that we are switching to has `DynamicRunEnabled` set to `true`, then this logic will reset that. I believe what we need here is `RaisePropertyChanged(\"DynamicRunEnabled\")`.","created_at":"2015-01-19T01:24:55Z","updated_at":"2015-01-19T01:24:55Z","html_url":"https://github.com/DynamoDS/Dynamo/pull/3555#discussion_r23139486","pull_request_url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/3555","_links":{"self":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/comments/23139486"},"html":{"href":"https://github.com/DynamoDS/Dynamo/pull/3555#discussion_r23139486"},"pull_request":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/3555"}}},"pull_request":{"url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/3555","id":27487748,"html_url":"https://github.com/DynamoDS/Dynamo/pull/3555","diff_url":"https://github.com/DynamoDS/Dynamo/pull/3555.diff","patch_url":"https://github.com/DynamoDS/Dynamo/pull/3555.patch","issue_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/3555","number":3555,"state":"open","locked":false,"title":"Fix for setting Run Automatic checkbox: MAGN-5835","user":{"login":"aparajit-pratap","id":5710686,"avatar_url":"https://avatars.githubusercontent.com/u/5710686?v=3","gravatar_id":"","url":"https://api.github.com/users/aparajit-pratap","html_url":"https://github.com/aparajit-pratap","followers_url":"https://api.github.com/users/aparajit-pratap/followers","following_url":"https://api.github.com/users/aparajit-pratap/following{/other_user}","gists_url":"https://api.github.com/users/aparajit-pratap/gists{/gist_id}","starred_url":"https://api.github.com/users/aparajit-pratap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aparajit-pratap/subscriptions","organizations_url":"https://api.github.com/users/aparajit-pratap/orgs","repos_url":"https://api.github.com/users/aparajit-pratap/repos","events_url":"https://api.github.com/users/aparajit-pratap/events{/privacy}","received_events_url":"https://api.github.com/users/aparajit-pratap/received_events","type":"User","site_admin":false},"body":"This submission fixes: http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-5835\r\n\r\nAs per the new workspace behavior the `DynamicRunEnabled` property that controls the `Run Automatically` checkbox is a property of the workspace (`WorkspaceModel`) and not globally applied (Refer to PR: https://github.com/DynamoDS/Dynamo/pull/3553). It is therefore reset on opening a new file (workspace) or creating a new home workspace after clearing the existing one. However the UI checkbox bound property, `DynamicRunEnabled` in `DynamoViewModel` was not getting reset along with the action of clearing the existing workspace. This submission fixes this issue.\r\n\r\n@Benglin please review.","created_at":"2015-01-16T07:06:35Z","updated_at":"2015-01-19T01:24:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ba3472f0c18c23564edee1a8fc2098698a28ce1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/3555/commits","review_comments_url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/3555/comments","review_comment_url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/comments/{number}","comments_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/3555/comments","statuses_url":"https://api.github.com/repos/DynamoDS/Dynamo/statuses/f53c621b4d1c39add852ee253e926d66aa1931cd","head":{"label":"aparajit-pratap:fixRunAutomatic","ref":"fixRunAutomatic","sha":"f53c621b4d1c39add852ee253e926d66aa1931cd","user":{"login":"aparajit-pratap","id":5710686,"avatar_url":"https://avatars.githubusercontent.com/u/5710686?v=3","gravatar_id":"","url":"https://api.github.com/users/aparajit-pratap","html_url":"https://github.com/aparajit-pratap","followers_url":"https://api.github.com/users/aparajit-pratap/followers","following_url":"https://api.github.com/users/aparajit-pratap/following{/other_user}","gists_url":"https://api.github.com/users/aparajit-pratap/gists{/gist_id}","starred_url":"https://api.github.com/users/aparajit-pratap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aparajit-pratap/subscriptions","organizations_url":"https://api.github.com/users/aparajit-pratap/orgs","repos_url":"https://api.github.com/users/aparajit-pratap/repos","events_url":"https://api.github.com/users/aparajit-pratap/events{/privacy}","received_events_url":"https://api.github.com/users/aparajit-pratap/received_events","type":"User","site_admin":false},"repo":{"id":15271868,"name":"Dynamo","full_name":"aparajit-pratap/Dynamo","owner":{"login":"aparajit-pratap","id":5710686,"avatar_url":"https://avatars.githubusercontent.com/u/5710686?v=3","gravatar_id":"","url":"https://api.github.com/users/aparajit-pratap","html_url":"https://github.com/aparajit-pratap","followers_url":"https://api.github.com/users/aparajit-pratap/followers","following_url":"https://api.github.com/users/aparajit-pratap/following{/other_user}","gists_url":"https://api.github.com/users/aparajit-pratap/gists{/gist_id}","starred_url":"https://api.github.com/users/aparajit-pratap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aparajit-pratap/subscriptions","organizations_url":"https://api.github.com/users/aparajit-pratap/orgs","repos_url":"https://api.github.com/users/aparajit-pratap/repos","events_url":"https://api.github.com/users/aparajit-pratap/events{/privacy}","received_events_url":"https://api.github.com/users/aparajit-pratap/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aparajit-pratap/Dynamo","description":"Visual Programming For Revit","fork":true,"url":"https://api.github.com/repos/aparajit-pratap/Dynamo","forks_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/forks","keys_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/teams","hooks_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/hooks","issue_events_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/issues/events{/number}","events_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/events","assignees_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/assignees{/user}","branches_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/branches{/branch}","tags_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/tags","blobs_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/git/refs{/sha}","trees_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/statuses/{sha}","languages_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/languages","stargazers_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/stargazers","contributors_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/contributors","subscribers_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/subscribers","subscription_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/subscription","commits_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/commits{/sha}","git_commits_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/git/commits{/sha}","comments_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/comments{/number}","issue_comment_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/issues/comments/{number}","contents_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/contents/{+path}","compare_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/merges","archive_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/downloads","issues_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/issues{/number}","pulls_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/pulls{/number}","milestones_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/milestones{/number}","notifications_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/labels{/name}","releases_url":"https://api.github.com/repos/aparajit-pratap/Dynamo/releases{/id}","created_at":"2013-12-18T02:34:41Z","updated_at":"2014-11-20T02:55:13Z","pushed_at":"2015-01-16T06:54:31Z","git_url":"git://github.com/aparajit-pratap/Dynamo.git","ssh_url":"git@github.com:aparajit-pratap/Dynamo.git","clone_url":"https://github.com/aparajit-pratap/Dynamo.git","svn_url":"https://github.com/aparajit-pratap/Dynamo","homepage":"http://dynamobim.org","size":738624,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DynamoDS:master","ref":"master","sha":"210da87a849437a20c861f0cbd58ca49a16bb94c","user":{"login":"DynamoDS","id":6528209,"avatar_url":"https://avatars.githubusercontent.com/u/6528209?v=3","gravatar_id":"","url":"https://api.github.com/users/DynamoDS","html_url":"https://github.com/DynamoDS","followers_url":"https://api.github.com/users/DynamoDS/followers","following_url":"https://api.github.com/users/DynamoDS/following{/other_user}","gists_url":"https://api.github.com/users/DynamoDS/gists{/gist_id}","starred_url":"https://api.github.com/users/DynamoDS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DynamoDS/subscriptions","organizations_url":"https://api.github.com/users/DynamoDS/orgs","repos_url":"https://api.github.com/users/DynamoDS/repos","events_url":"https://api.github.com/users/DynamoDS/events{/privacy}","received_events_url":"https://api.github.com/users/DynamoDS/received_events","type":"Organization","site_admin":false},"repo":{"id":3395179,"name":"Dynamo","full_name":"DynamoDS/Dynamo","owner":{"login":"DynamoDS","id":6528209,"avatar_url":"https://avatars.githubusercontent.com/u/6528209?v=3","gravatar_id":"","url":"https://api.github.com/users/DynamoDS","html_url":"https://github.com/DynamoDS","followers_url":"https://api.github.com/users/DynamoDS/followers","following_url":"https://api.github.com/users/DynamoDS/following{/other_user}","gists_url":"https://api.github.com/users/DynamoDS/gists{/gist_id}","starred_url":"https://api.github.com/users/DynamoDS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DynamoDS/subscriptions","organizations_url":"https://api.github.com/users/DynamoDS/orgs","repos_url":"https://api.github.com/users/DynamoDS/repos","events_url":"https://api.github.com/users/DynamoDS/events{/privacy}","received_events_url":"https://api.github.com/users/DynamoDS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DynamoDS/Dynamo","description":"Visual Programming","fork":false,"url":"https://api.github.com/repos/DynamoDS/Dynamo","forks_url":"https://api.github.com/repos/DynamoDS/Dynamo/forks","keys_url":"https://api.github.com/repos/DynamoDS/Dynamo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DynamoDS/Dynamo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DynamoDS/Dynamo/teams","hooks_url":"https://api.github.com/repos/DynamoDS/Dynamo/hooks","issue_events_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/events{/number}","events_url":"https://api.github.com/repos/DynamoDS/Dynamo/events","assignees_url":"https://api.github.com/repos/DynamoDS/Dynamo/assignees{/user}","branches_url":"https://api.github.com/repos/DynamoDS/Dynamo/branches{/branch}","tags_url":"https://api.github.com/repos/DynamoDS/Dynamo/tags","blobs_url":"https://api.github.com/repos/DynamoDS/Dynamo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DynamoDS/Dynamo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DynamoDS/Dynamo/git/refs{/sha}","trees_url":"https://api.github.com/repos/DynamoDS/Dynamo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DynamoDS/Dynamo/statuses/{sha}","languages_url":"https://api.github.com/repos/DynamoDS/Dynamo/languages","stargazers_url":"https://api.github.com/repos/DynamoDS/Dynamo/stargazers","contributors_url":"https://api.github.com/repos/DynamoDS/Dynamo/contributors","subscribers_url":"https://api.github.com/repos/DynamoDS/Dynamo/subscribers","subscription_url":"https://api.github.com/repos/DynamoDS/Dynamo/subscription","commits_url":"https://api.github.com/repos/DynamoDS/Dynamo/commits{/sha}","git_commits_url":"https://api.github.com/repos/DynamoDS/Dynamo/git/commits{/sha}","comments_url":"https://api.github.com/repos/DynamoDS/Dynamo/comments{/number}","issue_comment_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/comments/{number}","contents_url":"https://api.github.com/repos/DynamoDS/Dynamo/contents/{+path}","compare_url":"https://api.github.com/repos/DynamoDS/Dynamo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DynamoDS/Dynamo/merges","archive_url":"https://api.github.com/repos/DynamoDS/Dynamo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DynamoDS/Dynamo/downloads","issues_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues{/number}","pulls_url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls{/number}","milestones_url":"https://api.github.com/repos/DynamoDS/Dynamo/milestones{/number}","notifications_url":"https://api.github.com/repos/DynamoDS/Dynamo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DynamoDS/Dynamo/labels{/name}","releases_url":"https://api.github.com/repos/DynamoDS/Dynamo/releases{/id}","created_at":"2012-02-09T07:35:33Z","updated_at":"2015-01-18T22:26:23Z","pushed_at":"2015-01-18T21:50:10Z","git_url":"git://github.com/DynamoDS/Dynamo.git","ssh_url":"git@github.com:DynamoDS/Dynamo.git","clone_url":"https://github.com/DynamoDS/Dynamo.git","svn_url":"https://github.com/DynamoDS/Dynamo","homepage":"http://dynamobim.org","size":872231,"stargazers_count":185,"watchers_count":185,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":126,"mirror_url":null,"open_issues_count":497,"forks":126,"open_issues":497,"watchers":185,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/3555"},"html":{"href":"https://github.com/DynamoDS/Dynamo/pull/3555"},"issue":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/issues/3555"},"comments":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/issues/3555/comments"},"review_comments":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/3555/comments"},"review_comment":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/3555/commits"},"statuses":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/statuses/f53c621b4d1c39add852ee253e926d66aa1931cd"}}}}