diff --git a/src/ViewModels/Launcher.cs b/src/ViewModels/Launcher.cs index 5abf50e8..dd618e41 100644 --- a/src/ViewModels/Launcher.cs +++ b/src/ViewModels/Launcher.cs @@ -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;