-
Couldn't load subscription status.
- Fork 1.2k
Stop the UIController properly in the GitHubPane #370
Conversation
Rewrite the logic of loading individual views that are not controlled by an UIController in the GitHubPane, so it's clearer what needs to happen and in which conditions.
| using ReactiveUI; | ||
| using System.Collections.Generic; | ||
| using System.Threading.Tasks; | ||
| using System.Diagnostics; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this isn't being used.
|
|
||
| if (!IsGitHubRepo.Value) | ||
| { | ||
| //LoadView(UIViewType.NotAGitHubRepo); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't look like this if statement is doing anything anymore, I uncommented to investigate and it looks like it's broken, do we intend to add NotAGitHubRepo to UIViewType at some point in the future?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it's a placeholder for @grokys to stuff things into 😄
|
This looks great 👍 |

Make sure existing UI is stopped whenever the following conditions change:
Also make sure
Reloadis reentrant, all those await calls means it can get called multiple times.