@lvce-editor/main-area-worker 6.0.0 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3362,7 +3362,7 @@ const renderEditorGroup = (group, groupIndex, splitButtonEnabled = false) => {
|
|
|
3362
3362
|
className: 'EditorGroup',
|
|
3363
3363
|
type: Div
|
|
3364
3364
|
}, ...renderEditorGroupHeader(group, groupIndex, splitButtonEnabled), {
|
|
3365
|
-
childCount:
|
|
3365
|
+
childCount: 1,
|
|
3366
3366
|
className: 'EditorContainer',
|
|
3367
3367
|
type: Div
|
|
3368
3368
|
}, ...renderEditor(activeTab)];
|
|
@@ -3487,10 +3487,13 @@ const save = async state => {
|
|
|
3487
3487
|
const {
|
|
3488
3488
|
tab
|
|
3489
3489
|
} = activeTabData;
|
|
3490
|
-
if (tab.loadingState
|
|
3490
|
+
if (tab.loadingState === 'loading') {
|
|
3491
3491
|
return state;
|
|
3492
3492
|
}
|
|
3493
3493
|
await invoke('Editor.save', tab.editorUid);
|
|
3494
|
+
if (!tab.isDirty) {
|
|
3495
|
+
return state;
|
|
3496
|
+
}
|
|
3494
3497
|
return updateTab(state, tab.id, {
|
|
3495
3498
|
isDirty: false
|
|
3496
3499
|
});
|