diff --git a/src/renderer/src/workspace.js b/src/renderer/src/workspace.js index e20727a93..a053cbfbb 100644 --- a/src/renderer/src/workspace.js +++ b/src/renderer/src/workspace.js @@ -70,6 +70,7 @@ angular.module('workspace').controller("WorkspaceController", ['$scope', '$rootS } else if (isPracticalCourseMode === false) { isPracticalCourse = false; myProject.setMode('default'); + settingForDefault(); } myProject.isSavedPath = storage.getItem('defaultPath') || ''; @@ -969,6 +970,11 @@ angular.module('workspace').controller("WorkspaceController", ['$scope', '$rootS hwCategoryList = EntryStatic.hwCategoryList; } + function settingForDefault() { + defaultInitOption = {}; + hwCategoryList = []; + } + function addSpinnerPopup() { $scope.popupHelper.addPopup('workspaceSpinner', { type: 'spinner', diff --git a/src/renderer/views/header.html b/src/renderer/views/header.html index a7f25f0d1..30e79c356 100644 --- a/src/renderer/views/header.html +++ b/src/renderer/views/header.html @@ -16,7 +16,7 @@