diff --git a/public/i18n/en.yml b/public/i18n/en.yml index 2eeeaf0..5555cd9 100644 --- a/public/i18n/en.yml +++ b/public/i18n/en.yml @@ -227,7 +227,7 @@ SETTINGS_SHORT_URL: Use short url SETTINGS_DELETE_LOCAL_FILE_AFTER_UPLOAD: Delete local file after upload SETTINGS_SYNC_CONFIG: Settings Sync Configuration SETTINGS_SYNC_CONFIG_TITLE: Sync Settings -SETTINGS_SYNC_CONFIG_NOTE: The files to be synchronized include both configuration files and gallery files. +SETTINGS_SYNC_CONFIG_NOTE: The files to be synchronized are configuration files. SETTINGS_SYNC_CONFIG_SELECT_TYPE: Select sync method SETTINGS_SYNC_CONFIG_SELECT_FILE: Select files to sync SETTINGS_SYNC_CONFIG_SELECT_CONFIG: Configuration files only diff --git a/public/i18n/zh-CN.yml b/public/i18n/zh-CN.yml index 53b4a4e..14e1b5e 100644 --- a/public/i18n/zh-CN.yml +++ b/public/i18n/zh-CN.yml @@ -230,7 +230,7 @@ SETTINGS_SHORT_URL: 使用短链接 SETTINGS_DELETE_LOCAL_FILE_AFTER_UPLOAD: 上传后删除本地文件 SETTINGS_SYNC_CONFIG: 设置配置同步 SETTINGS_SYNC_CONFIG_TITLE: 同步设置 -SETTINGS_SYNC_CONFIG_NOTE: 同步的文件包括配置文件和相册文件 +SETTINGS_SYNC_CONFIG_NOTE: 同步的文件为配置文件 SETTINGS_SYNC_CONFIG_SELECT_TYPE: 选择同步方式 SETTINGS_SYNC_CONFIG_SELECT_FILE: 选择同步文件 SETTINGS_SYNC_CONFIG_SELECT_CONFIG: 仅配置文件 diff --git a/public/i18n/zh-TW.yml b/public/i18n/zh-TW.yml index 475a918..1fa1ec7 100644 --- a/public/i18n/zh-TW.yml +++ b/public/i18n/zh-TW.yml @@ -228,7 +228,7 @@ SETTINGS_SHORT_URL: 使用短網址 SETTINGS_DELETE_LOCAL_FILE_AFTER_UPLOAD: 上傳後刪除本地檔案 SETTINGS_SYNC_CONFIG: 設置同步配置 SETTINGS_SYNC_CONFIG_TITLE: 同步設置 -SETTINGS_SYNC_CONFIG_NOTE: 同步的檔案包括配置檔案和相簿檔案 +SETTINGS_SYNC_CONFIG_NOTE: 同步的檔案为配置檔案 SETTINGS_SYNC_CONFIG_SELECT_TYPE: 選擇同步方式 SETTINGS_SYNC_CONFIG_SELECT_FILE: 選擇同步檔案 SETTINGS_SYNC_CONFIG_SELECT_CONFIG: 僅配置檔案 diff --git a/src/main/utils/syncSettings.ts b/src/main/utils/syncSettings.ts index 36121ec..c88673c 100644 --- a/src/main/utils/syncSettings.ts +++ b/src/main/utils/syncSettings.ts @@ -60,8 +60,8 @@ function getSyncConfig () { } function syncConfigValidator (syncConfig: SyncConfig) { - const { type, file, username, repo, branch, token } = syncConfig - return type && file && username && repo && branch && token + const { type, username, repo, branch, token } = syncConfig + return type && username && repo && branch && token } async function getModifiedTime (syncConfig: SyncConfig, filePath: string) {