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

Commit b6a9b8f

Browse files
committed
here be dragons
1 parent eb3f7f2 commit b6a9b8f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/GitHub.VisualStudio/UI/Views/Controls/RepositoryPublishControl.xaml.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,21 @@ public RepositoryPublishControl()
3131

3232
d(this.Bind(ViewModel, vm => vm.Description, v => v.description.Text));
3333

34+
// BEGIN DANGER ZONE
35+
//
36+
// This replaces the default Bind behaviour as the Checkbox control
37+
// does not raise an event here when it is hosted in the Team Explorer
38+
// view.
39+
//
40+
// We've used this.Bind in other places (popups) so it's something
41+
// we need to investigate further
42+
//
3443
d(Observable.FromEventPattern<RoutedEventArgs>(makePrivate, "Checked")
3544
.Subscribe(_ => ViewModel.KeepPrivate = true));
36-
3745
d(Observable.FromEventPattern<RoutedEventArgs>(makePrivate, "Unchecked")
3846
.Subscribe(_ => ViewModel.KeepPrivate = false));
47+
// END DANGER ZONE
48+
3949

4050
d(this.OneWayBind(ViewModel, vm => vm.CanKeepPrivate, v => v.makePrivate.IsEnabled));
4151

0 commit comments

Comments
 (0)