fix: 处理会话恢复后的状态监控启动

This commit is contained in:
Baobhan Sith
2025-05-13 17:37:01 +08:00
parent 2910951c21
commit 6bd1682ffe
5 changed files with 43 additions and 36 deletions
@@ -17,7 +17,7 @@ export function useWorkspaceSettings() {
showQuickCommandTagsBoolean,
terminalScrollbackLimitNumber,
fileManagerShowDeleteConfirmationBoolean,
terminalEnableRightClickPasteBoolean, // NEW
terminalEnableRightClickPasteBoolean,
showPopupFileManagerBoolean, // +++ Import the new getter +++
} = storeToRefs(settingsStore);
@@ -296,7 +296,7 @@ export function useWorkspaceSettings() {
watch(showQuickCommandTagsBoolean, (newValue) => { showQuickCommandTagsLocal.value = newValue; }, { immediate: true });
watch(terminalScrollbackLimitNumber, (newValue) => { terminalScrollbackLimitLocal.value = newValue; }, { immediate: true });
watch(fileManagerShowDeleteConfirmationBoolean, (newValue) => { fileManagerShowDeleteConfirmationLocal.value = newValue; }, { immediate: true });
watch(terminalEnableRightClickPasteBoolean, (newValue) => { terminalEnableRightClickPasteLocal.value = newValue; }, { immediate: true }); // NEW
watch(terminalEnableRightClickPasteBoolean, (newValue) => { terminalEnableRightClickPasteLocal.value = newValue; }, { immediate: true });
watch(showPopupFileManagerBoolean, (newValue) => { showPopupFileManagerLocal.value = newValue; }, { immediate: true }); // +++ Watch for popup file manager +++
@@ -355,11 +355,11 @@ export function useWorkspaceSettings() {
fileManagerShowDeleteConfirmationSuccess,
handleUpdateFileManagerDeleteConfirmation,
terminalEnableRightClickPasteLocal, // NEW
terminalEnableRightClickPasteLoading, // NEW
terminalEnableRightClickPasteMessage, // NEW
terminalEnableRightClickPasteSuccess, // NEW
handleUpdateTerminalRightClickPasteSetting, // NEW
terminalEnableRightClickPasteLocal,
terminalEnableRightClickPasteLoading,
terminalEnableRightClickPasteMessage,
terminalEnableRightClickPasteSuccess,
handleUpdateTerminalRightClickPasteSetting,
// Popup File Manager
showPopupFileManagerLocal,