Skip to content

Commit 5299185

Browse files
committed
fix: clone repo progress not dismissing
1 parent 063cc7e commit 5299185

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/ui/dialog/cloning_repository.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ Future<void> showDialog(BuildContext context, String repoUrl, String dir, Functi
2727
runGitOperation(LogType.Clone, (event) => event?["result"] as String?, {"repoUrl": repoUrl, "repoPath": dir, "depth": depth, "bare": bare}).then((result) {
2828
taskSub.cancel();
2929
progressSub.cancel();
30-
Navigator.of(context).canPop() ? Navigator.pop(context) : null;
30+
final rootNavigator = Navigator.of(context, rootNavigator: true);
31+
if (rootNavigator.canPop()) rootNavigator.pop();
3132
callback(result);
3233
});
3334

0 commit comments

Comments
 (0)