Skip to content

Commit e851d1d

Browse files
committed
check saveProject busy
1 parent daedd35 commit e851d1d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/renderer/src/workspace.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,9 @@ angular.module('workspace').controller("WorkspaceController", ['$scope', '$rootS
522522
if(checkTextModeCode()) {
523523
return;
524524
}
525+
if (getWorkspaceBusy()) {
526+
return;
527+
}
525528
window.isNowSaving = true;
526529
$scope.doPopupControl({
527530
'type': 'spinner',
@@ -548,6 +551,9 @@ angular.module('workspace').controller("WorkspaceController", ['$scope', '$rootS
548551
if(checkTextModeCode()) {
549552
return;
550553
}
554+
if (getWorkspaceBusy()) {
555+
return;
556+
}
551557
window.isNowSaving = true;
552558
$scope.doPopupControl({
553559
'type': 'spinner',
@@ -1188,10 +1194,6 @@ angular.module('workspace').controller("WorkspaceController", ['$scope', '$rootS
11881194
this.programmingMode = 0;
11891195
this.saveProject = function(path, cb) {
11901196

1191-
if(window.isNowLoading || window.isNewProject) {
1192-
return ;
1193-
}
1194-
11951197
var project_name = this.name;
11961198
var parent = this.parent;
11971199
//저장 수행

0 commit comments

Comments
 (0)