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

Commit 9ffacc7

Browse files
committed
Don't disable tabs when logghing in
User might want to login for a different user/server.
1 parent b57fdba commit 9ffacc7

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/GitHub.VisualStudio.UI/Views/Dialog/LoginCredentialsView.xaml.cs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public LoginCredentialsView()
3232
{
3333
SetupDotComBindings(d);
3434
SetupEnterpriseBindings(d);
35-
SetupSelectedAndVisibleTabBindings(d);
35+
SetupSelectedTabBindings(d);
3636
d(Disposable.Create(Deactivate));
3737
});
3838

@@ -110,16 +110,8 @@ void SetupEnterpriseBindings(Action<IDisposable> d)
110110
d(this.OneWayBind(ViewModel, vm => vm.EnterpriseLogin.Error, v => v.enterpriseErrorMessage.UserError));
111111
}
112112

113-
void SetupSelectedAndVisibleTabBindings(Action<IDisposable> d)
113+
void SetupSelectedTabBindings(Action<IDisposable> d)
114114
{
115-
d(this.WhenAny(x => x.ViewModel.LoginMode, x => x.Value)
116-
.Select(x => x == LoginMode.DotComOrEnterprise || x == LoginMode.DotComOnly)
117-
.BindTo(this, v => v.dotComTab.IsEnabled));
118-
119-
d(this.WhenAny(x => x.ViewModel.LoginMode, x => x.Value)
120-
.Select(x => x == LoginMode.DotComOrEnterprise || x == LoginMode.EnterpriseOnly)
121-
.BindTo(this, v => v.enterpriseTab.IsEnabled));
122-
123115
d(this.WhenAny(x => x.ViewModel.LoginMode, x => x.Value)
124116
.Select(x => x == LoginMode.DotComOrEnterprise || x == LoginMode.DotComOnly)
125117
.Where(x => x == true)

0 commit comments

Comments
 (0)