Skip to content

Commit

Permalink
✨ Feature: auto close timestamp rename when advanced rename is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuingsmile committed May 23, 2023
1 parent c4b0235 commit 0c6e8d1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/renderer/pages/PicGoSetting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: '',
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 0c6e8d1

Please sign in to comment.