Skip to content

Commit 44f173a

Browse files
committed
Transfer correct properties to model from VM. Closes #4571
1 parent 3e68474 commit 44f173a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Rubberduck.Core/UI/Refactorings/EncapsulateField/EncapsulateFieldPresenter.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ public EncapsulateFieldModel Show()
3838
}
3939

4040
_model.PropertyName = _view.ViewModel.PropertyName;
41-
_model.ImplementLetSetterType = _view.ViewModel.CanHaveLet;
42-
_model.ImplementSetSetterType = _view.ViewModel.CanHaveSet;
43-
_model.CanImplementLet = _view.ViewModel.CanHaveSet && !_view.ViewModel.CanHaveSet;
41+
_model.ImplementLetSetterType = _view.ViewModel.IsLetSelected;
42+
_model.ImplementSetSetterType = _view.ViewModel.IsSetSelected;
43+
_model.CanImplementLet = _view.ViewModel.CanHaveLet;
4444

4545
_model.ParameterName = _view.ViewModel.ParameterName;
4646
return _model;

0 commit comments

Comments
 (0)