fix(ui): allow RunNow for any non-running task, not just queued
This commit is contained in:
@@ -81,7 +81,7 @@ public partial class TaskItemViewModel : ViewModelBase
|
|||||||
}
|
}
|
||||||
|
|
||||||
private bool CanRunNow() =>
|
private bool CanRunNow() =>
|
||||||
_canRunNow() && Status == TaskStatus.Queued;
|
_canRunNow() && Status != TaskStatus.Running;
|
||||||
|
|
||||||
[RelayCommand(CanExecute = nameof(CanToggleDone))]
|
[RelayCommand(CanExecute = nameof(CanToggleDone))]
|
||||||
private async Task ToggleDone()
|
private async Task ToggleDone()
|
||||||
|
|||||||
Reference in New Issue
Block a user