fix: 处理会话恢复后的状态监控启动
This commit is contained in:
@@ -239,58 +239,47 @@ const { t } = useI18n();
|
||||
|
||||
const {
|
||||
popupEditorEnabled,
|
||||
// popupEditorLoading, // Not directly used by template if button has its own loading state management
|
||||
popupEditorMessage,
|
||||
popupEditorSuccess,
|
||||
handleUpdatePopupEditorSetting,
|
||||
shareTabsEnabled,
|
||||
// shareTabsLoading,
|
||||
shareTabsMessage,
|
||||
shareTabsSuccess,
|
||||
handleUpdateShareTabsSetting,
|
||||
autoCopyEnabled,
|
||||
// autoCopyLoading,
|
||||
autoCopyMessage,
|
||||
autoCopySuccess,
|
||||
handleUpdateAutoCopySetting,
|
||||
workspaceSidebarPersistentEnabled,
|
||||
// workspaceSidebarPersistentLoading,
|
||||
workspaceSidebarPersistentMessage,
|
||||
workspaceSidebarPersistentSuccess,
|
||||
handleUpdateWorkspaceSidebarSetting,
|
||||
commandInputSyncTargetLocal,
|
||||
// commandInputSyncLoading,
|
||||
commandInputSyncMessage,
|
||||
commandInputSyncSuccess,
|
||||
handleUpdateCommandInputSyncTarget,
|
||||
showConnectionTagsLocal,
|
||||
// showConnectionTagsLoading,
|
||||
showConnectionTagsMessage,
|
||||
showConnectionTagsSuccess,
|
||||
handleUpdateShowConnectionTags,
|
||||
showQuickCommandTagsLocal,
|
||||
// showQuickCommandTagsLoading,
|
||||
showQuickCommandTagsMessage,
|
||||
showQuickCommandTagsSuccess,
|
||||
handleUpdateShowQuickCommandTags,
|
||||
terminalScrollbackLimitLocal,
|
||||
// terminalScrollbackLimitLoading,
|
||||
terminalScrollbackLimitMessage,
|
||||
terminalScrollbackLimitSuccess,
|
||||
handleUpdateTerminalScrollbackLimit,
|
||||
fileManagerShowDeleteConfirmationLocal,
|
||||
// fileManagerShowDeleteConfirmationLoading,
|
||||
fileManagerShowDeleteConfirmationMessage,
|
||||
fileManagerShowDeleteConfirmationSuccess,
|
||||
handleUpdateFileManagerDeleteConfirmation,
|
||||
terminalEnableRightClickPasteLocal, // NEW
|
||||
terminalEnableRightClickPasteLoading, // NEW (Not used in template, but available)
|
||||
terminalEnableRightClickPasteMessage, // NEW
|
||||
terminalEnableRightClickPasteSuccess, // NEW
|
||||
handleUpdateTerminalRightClickPasteSetting, // NEW
|
||||
// Popup File Manager
|
||||
terminalEnableRightClickPasteLocal,
|
||||
terminalEnableRightClickPasteLoading,
|
||||
terminalEnableRightClickPasteMessage,
|
||||
terminalEnableRightClickPasteSuccess,
|
||||
handleUpdateTerminalRightClickPasteSetting,
|
||||
showPopupFileManagerLocal,
|
||||
// showPopupFileManagerLoading, // Not used
|
||||
showPopupFileManagerMessage,
|
||||
showPopupFileManagerSuccess,
|
||||
handleUpdateShowPopupFileManager,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -391,12 +391,12 @@ export const useSettingsStore = defineStore('settings', () => {
|
||||
'ipBlacklistEnabled',
|
||||
'dashboardSortBy',
|
||||
'dashboardSortOrder',
|
||||
'showConnectionTags', // NEW
|
||||
'showQuickCommandTags', // NEW
|
||||
'layoutLocked', // NEW
|
||||
'terminalScrollbackLimit', // NEW
|
||||
'fileManagerShowDeleteConfirmation', // NEW
|
||||
'terminalEnableRightClickPaste' // NEW
|
||||
'showConnectionTags',
|
||||
'showQuickCommandTags',
|
||||
'layoutLocked',
|
||||
'terminalScrollbackLimit',
|
||||
'fileManagerShowDeleteConfirmation',
|
||||
'terminalEnableRightClickPaste'
|
||||
];
|
||||
if (!allowedKeys.includes(key)) {
|
||||
console.error(`[SettingsStore] 尝试更新不允许的设置键: ${key}`);
|
||||
@@ -486,12 +486,12 @@ export const useSettingsStore = defineStore('settings', () => {
|
||||
'ipBlacklistEnabled',
|
||||
'dashboardSortBy',
|
||||
'dashboardSortOrder',
|
||||
'showConnectionTags', // NEW
|
||||
'showQuickCommandTags', // NEW
|
||||
'layoutLocked', // NEW
|
||||
'terminalScrollbackLimit', // NEW
|
||||
'fileManagerShowDeleteConfirmation', // NEW
|
||||
'terminalEnableRightClickPaste' // NEW
|
||||
'showConnectionTags',
|
||||
'showQuickCommandTags',
|
||||
'layoutLocked',
|
||||
'terminalScrollbackLimit',
|
||||
'fileManagerShowDeleteConfirmation',
|
||||
'terminalEnableRightClickPaste'
|
||||
];
|
||||
const filteredUpdates: Partial<SettingsState> = {};
|
||||
let languageUpdate: string | undefined = undefined;
|
||||
|
||||
Reference in New Issue
Block a user