Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit b08edb5

Browse files
committed
Automatically change the host drop-down
When a user Add/Changes Account, automatically change the host drop-down.
1 parent d24aab8 commit b08edb5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/GitHub.App/ViewModels/TeamExplorer/RepositoryPublishViewModel.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,12 @@ public bool IsHostComboBoxVisible
136136
get { return isHostComboBoxVisible.Value; }
137137
}
138138

139-
Task LoginAsDifferentUserAsync()
139+
async Task LoginAsDifferentUserAsync()
140140
{
141-
return dialogService.ShowLoginDialog();
141+
if (await dialogService.ShowLoginDialog() is IConnection connection)
142+
{
143+
SelectedConnection = connection;
144+
}
142145
}
143146

144147
ReactiveCommand<Unit, ProgressState> InitializePublishRepositoryCommand()

0 commit comments

Comments
 (0)