{"action":"closed","issue":{"url":"https://api.github.com/repos/Catel/Catel/issues/1226","repository_url":"https://api.github.com/repos/Catel/Catel","labels_url":"https://api.github.com/repos/Catel/Catel/issues/1226/labels{/name}","comments_url":"https://api.github.com/repos/Catel/Catel/issues/1226/comments","events_url":"https://api.github.com/repos/Catel/Catel/issues/1226/events","html_url":"https://github.com/Catel/Catel/issues/1226","id":371973890,"node_id":"MDU6SXNzdWUzNzE5NzM4OTA=","number":1226,"title":"Calling SaveViewModelAsync() twice","user":{"login":"RCP161","id":30856169,"node_id":"MDQ6VXNlcjMwODU2MTY5","avatar_url":"https://avatars0.githubusercontent.com/u/30856169?v=4","gravatar_id":"","url":"https://api.github.com/users/RCP161","html_url":"https://github.com/RCP161","followers_url":"https://api.github.com/users/RCP161/followers","following_url":"https://api.github.com/users/RCP161/following{/other_user}","gists_url":"https://api.github.com/users/RCP161/gists{/gist_id}","starred_url":"https://api.github.com/users/RCP161/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RCP161/subscriptions","organizations_url":"https://api.github.com/users/RCP161/orgs","repos_url":"https://api.github.com/users/RCP161/repos","events_url":"https://api.github.com/users/RCP161/events{/privacy}","received_events_url":"https://api.github.com/users/RCP161/received_events","type":"User","site_admin":false},"labels":[{"id":917481007,"node_id":"MDU6TGFiZWw5MTc0ODEwMDc=","url":"https://api.github.com/repos/Catel/Catel/labels/wontfix","name":"wontfix","color":"ffffff","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-19T14:09:02Z","updated_at":"2018-12-28T21:52:29Z","closed_at":"2018-12-28T21:52:29Z","author_association":"NONE","body":"If I use the CancelViewModelAsync() Method, the ViewModel doesn't get the PropertyChanged of the Model anymore. So if I edit the ViewModel again, the changes will be written to the Model, but changes on other Properties will not be shown in the ViewModel.\r\nAddtional to that, if i call CancelViewModelAsync() the second time, nothing happend. \r\n\r\n### Steps to reproduce\r\n\r\nDone in this TestRepo: https://github.com/RCP161/IDataObjectTest/tree/master/M1Vm2\r\n\r\n1. Start the program and change one value. Leave the field, so that the Property updates. The State TextBlock changes.\r\n2. Click Revert to call CancelViewModelAsync() and change the value again.\r\n\r\n=> The TextBlock does not change the state anymore. You can trace the problem in the output window.\r\n\r\n4. Click Revert again.\r\n\r\n=> Nothing happened.\r\n\r\nPlatform:\r\n.NET version: 4.6.1\r\n\r\n### Expected behaviour\r\n\r\nThe ViewModel should still listen on the PropertyChanged of the Model.\r\nThe CancelViewModelAsync (or SaveViewModelAsync) should be called more times than one. \r\n\r\n### Actual behaviour\r\nViewModel dosen't listen to the PropertyChanged of the Model anymore.\r\nCan't call  ((System.ComponentModel.IEditableObject)this).BeginEdit(); to use the functionality again. So nothing happened.\r\n"}}
{"actor":{"display_login":"stale"}}