mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-30 13:51:53 +08:00
enhance: stop switching workspace when one or more tasks are running in opened pages
This commit is contained in:
@@ -465,6 +465,15 @@ namespace SourceGit.ViewModels
|
||||
|
||||
private void SwitchWorkspace(Workspace to)
|
||||
{
|
||||
foreach (var one in Pages)
|
||||
{
|
||||
if (one.IsInProgress())
|
||||
{
|
||||
App.RaiseException(null, "You have unfinished task(s) in opened pages. Please wait!!!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
_ignoreIndexChange = true;
|
||||
|
||||
var pref = Preference.Instance;
|
||||
|
||||
Reference in New Issue
Block a user