Skip to content

Commit 174bc61

Browse files
committed
Disable refresh for source control and todo explorer
1 parent f326743 commit 174bc61

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

RetailCoder.VBE/UI/SourceControl/SourceControlViewViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public SourceControlViewViewModel(
6060
_initRepoCommand = new DelegateCommand(_ => InitRepo());
6161
_openRepoCommand = new DelegateCommand(_ => OpenRepo());
6262
_cloneRepoCommand = new DelegateCommand(_ => ShowCloneRepoGrid());
63-
_refreshCommand = new DelegateCommand(_ => Refresh());
63+
_refreshCommand = new DelegateCommand(_ => Refresh(), _ => _state.IsDirty());
6464
_dismissErrorMessageCommand = new DelegateCommand(_ => DismissErrorMessage());
6565
_showFilePickerCommand = new DelegateCommand(_ => ShowFilePicker());
6666
_loginGridOkCommand = new DelegateCommand(_ => CloseLoginGrid(), text => !string.IsNullOrEmpty((string)text));

RetailCoder.VBE/UI/ToDoItems/ToDoExplorerViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ public ICommand RefreshCommand
100100
return _refreshCommand = new DelegateCommand(_ =>
101101
{
102102
_state.OnParseRequested(this);
103-
});
103+
},
104+
_ => _state.IsDirty());
104105
}
105106
}
106107

0 commit comments

Comments
 (0)