This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
src/GitHub.VisualStudio.UI/Views/Dialog Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments