From 0c6e8d1759ffb03c318c0f27e71792ec6074152c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=8C=E8=90=8C=E5=93=92=E8=B5=AB=E8=90=9D?= Date: Tue, 23 May 2023 15:14:19 +0800 Subject: [PATCH] :sparkles: Feature: auto close timestamp rename when advanced rename is enabled --- src/renderer/pages/PicGoSetting.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/renderer/pages/PicGoSetting.vue b/src/renderer/pages/PicGoSetting.vue index fa3bea15..7d23a4f0 100644 --- a/src/renderer/pages/PicGoSetting.vue +++ b/src/renderer/pages/PicGoSetting.vue @@ -1657,6 +1657,12 @@ async function initData () { enable: false, format: '{filename}' } + if (advancedRename.value.enable) { + form.autoRename = false + saveConfig({ + 'settings.autoRename': false + }) + } sync.value = settings.sync || { type: 'github', username: '', @@ -1736,6 +1742,10 @@ async function handleCancelAdvancedRename () { function handleSaveAdvancedRename () { saveConfig('buildIn.rename', toRaw(advancedRename.value)) + if (advancedRename.value.enable) { + form.autoRename = false + saveConfig('settings.autoRename', false) + } advancedRenameVisible.value = false const successNotification = new Notification($T('SETTINGS_ADVANCED_RENAME'), { body: $T('TIPS_SET_SUCCEED')