Skip to content

Commit

Permalink
Gui: update buttons if there are no tasks to stop
Browse files Browse the repository at this point in the history
  • Loading branch information
sinsanction committed May 30, 2024
1 parent 9d12629 commit 7894cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OKEGui/OKEGui/Gui/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ private void BtnStop_Click(object sender, RoutedEventArgs e)
if (runningTasks.Count == 0)
{
MessageBox.Show("没有正在运行的任务", "OKEGui", MessageBoxButton.OK, MessageBoxImage.Information);
BtnStop.IsEnabled = true;
UpdateActiveRelatedButtons();
return;
}
try
Expand Down

0 comments on commit 7894cc6

Please sign in to comment.