Skip to content

A full-featured download manager.

refactor: move auto update setting to advanced

Dr_rOot87857eba946c
diff --git a/src/renderer/components/Preference/Advanced.vue b/src/renderer/components/Preference/Advanced.vue
index f2235968..73cca47b 100644
--- a/src/renderer/components/Preference/Advanced.vue
+++ b/src/renderer/components/Preference/Advanced.vue
@@ -11,6 +11,17 @@
size="mini"
:model="form"
:rules="rules">
+ <el-form-item :label="`${$t('preferences.auto-update')}: `" :label-width="formLabelWidth">
+ <el-col class="form-item-sub" :span="24">
+ <el-checkbox v-model="form.autoCheckUpdate">
+ {{ $t('preferences.auto-check-update') }}
+ </el-checkbox>
+ <div class="el-form-item__info" style="margin-top: 8px;" v-if="form.lastCheckUpdateTime !== 0">
+ {{ $t('preferences.last-check-update-time') + ': ' + (form.lastCheckUpdateTime !== 0 ? new
+ Date(form.lastCheckUpdateTime).toLocaleString() : new Date().toLocaleString()) }}
+ </div>
+ </el-col>
+ </el-form-item>
<el-form-item :label="`${$t('preferences.proxy')}: `" :label-width="formLabelWidth">
<el-switch
v-model="form.useProxy"
@@ -138,16 +149,20 @@
const {
allProxy,
allProxyBackup,
+ autoCheckUpdate,
btTracker,
hideAppMenu,
+ lastCheckUpdateTime,
useProxy,
userAgent
} = config
const result = {
allProxy,
allProxyBackup,
+ autoCheckUpdate,
btTracker: convertCommaToLine(btTracker),
hideAppMenu,
+ lastCheckUpdateTime,
useProxy,
userAgent
}
diff --git a/src/renderer/components/Preference/Basic.vue b/src/renderer/components/Preference/Basic.vue
index bc7bfff1..c106407c 100644
--- a/src/renderer/components/Preference/Basic.vue
+++ b/src/renderer/components/Preference/Basic.vue
@@ -59,15 +59,6 @@
{{ $t('preferences.auto-resume-all') }}
</el-checkbox>
</el-col>
- <el-col class="form-item-sub" :span="24">
- <el-checkbox v-model="form.autoCheckUpdate">
- {{ $t('preferences.auto-check-update') }}
- </el-checkbox>
- <div class="el-form-item__info" style="margin-top: 8px;" v-if="form.lastCheckUpdateTime !== 0">
- {{ $t('preferences.last-check-update-time') + ': ' + (form.lastCheckUpdateTime !== 0 ? new
- Date(form.lastCheckUpdateTime).toLocaleString() : new Date().toLocaleString()) }}
- </div>
- </el-col>
</el-form-item>
<el-form-item :label="`${$t('preferences.default-dir')}: `" :label-width="formLabelWidth">
<el-input placeholder="" v-model="downloadDir" :readonly="isMas()">
@@ -186,11 +177,9 @@
const initialForm = (config) => {
const {
- autoCheckUpdate,
dir,
hideAppMenu,
keepWindowState,
- lastCheckUpdateTime,
locale,
maxConcurrentDownloads,
maxConnectionPerServer,
@@ -204,12 +193,10 @@
theme
} = config
const result = {
- autoCheckUpdate,
continue: config.continue,
dir,
hideAppMenu,
keepWindowState,
- lastCheckUpdateTime,
locale,
maxConcurrentDownloads,
maxConnectionPerServer,
diff --git a/src/shared/locales/de/preferences.js b/src/shared/locales/de/preferences.js
index 5c810a48..ee22d017 100644
--- a/src/shared/locales/de/preferences.js
+++ b/src/shared/locales/de/preferences.js
@@ -47,6 +47,7 @@ export default {
'baidu-exporter': 'Baidu Exporter',
'browser-extensions-tips': 'Von der Community bereitgestellt, ',
'baidu-exporter-help': 'mehr über die Verwendung zu erfahren',
+ 'auto-update': 'Auto-Update',
'auto-check-update': 'Automatische Updates überprüfen',
'last-check-update-time': 'letzte kontrolle update - zeit'
}
diff --git a/src/shared/locales/en-US/preferences.js b/src/shared/locales/en-US/preferences.js
index 4291f04c..c02a4340 100644
--- a/src/shared/locales/en-US/preferences.js
+++ b/src/shared/locales/en-US/preferences.js
@@ -49,6 +49,7 @@ export default {
'baidu-exporter': 'BaiduExporter',
'browser-extensions-tips': 'Provided by the community, ',
'baidu-exporter-help': 'Click here for usage',
+ 'auto-update': 'Auto Update',
'auto-check-update': 'Automatically check for update',
'last-check-update-time': 'Last Time Checking for Update'
}
diff --git a/src/shared/locales/fa/preferences.js b/src/shared/locales/fa/preferences.js
index 15842baf..19586b2d 100644
--- a/src/shared/locales/fa/preferences.js
+++ b/src/shared/locales/fa/preferences.js
@@ -47,6 +47,7 @@ export default {
'baidu-exporter': 'BaiduExporter',
'browser-extensions-tips': 'تهیه شده توسط انجمن، ',
'baidu-exporter-help': 'برای استفاده اینجا کلیک کنید',
+ 'auto-update': 'به روز رسانی خودکار',
'auto-check-update': 'اتوماتیک برای آپدیت چک کن',
'last-check-update-time': 'آخرین باری که برای آپدیت چک شده'
}
diff --git a/src/shared/locales/fr/preferences.js b/src/shared/locales/fr/preferences.js
index a33a20b7..b07c86d4 100644
--- a/src/shared/locales/fr/preferences.js
+++ b/src/shared/locales/fr/preferences.js
@@ -47,6 +47,7 @@ export default {
'baidu-exporter': 'BaiduExporter',
'browser-extensions-tips': 'Fourni par la communauté, ',
'baidu-exporter-help': 'Cliquez ici pour voir l\'utilisation',
+ 'auto-update': 'Mettre à jour',
'auto-check-update': 'Mise à jour automatique',
'last-check-update-time': 'dernier contrôle la mise à jour du temps'
}
diff --git a/src/shared/locales/ja/preferences.js b/src/shared/locales/ja/preferences.js
index 7d17fc1b..de541c85 100644
--- a/src/shared/locales/ja/preferences.js
+++ b/src/shared/locales/ja/preferences.js
@@ -47,6 +47,7 @@ export default {
'baidu-exporter': 'バイドゥオンラインストレージ拡張機能',
'browser-extensions-tips': '他のユーザによって作成されたものです。動作は保証できません。',
'baidu-exporter-help': 'ここをクリックし使用説明を見る',
+ 'auto-update': '自動更新',
'auto-check-update': '更新を自動で確認する',
'last-check-update-time': '前回更新確認時間'
}
diff --git a/src/shared/locales/ko/preferences.js b/src/shared/locales/ko/preferences.js
index 1e7ded14..2eef69a1 100644
--- a/src/shared/locales/ko/preferences.js
+++ b/src/shared/locales/ko/preferences.js
@@ -47,6 +47,7 @@ export default {
'baidu-exporter': 'BaiduExporter',
'browser-extensions-tips': '커뮤니티에서 제공하는, ',
'baidu-exporter-help': '사용법을 보려면 여기를 클릭하십시오.',
+ 'auto-update': '자동 업데이트',
'auto-check-update': '업데이트 자동 확인',
'last-check-update-time': '마지막 업데이트 확인 시간'
}
diff --git a/src/shared/locales/pt-BR/preferences.js b/src/shared/locales/pt-BR/preferences.js
index 373b204d..97ec5512 100644
--- a/src/shared/locales/pt-BR/preferences.js
+++ b/src/shared/locales/pt-BR/preferences.js
@@ -47,6 +47,7 @@ export default {
'baidu-exporter': 'BaiduExporter',
'browser-extensions-tips': 'Fornecido pela comunidade, ',
'baidu-exporter-help': 'Clique aqui ver as instruções de uso',
+ 'auto-update': 'Atualização automática',
'auto-check-update': 'A verificação automática de atualizações',
'last-check-update-time': 'última verificação do tempo de atualização'
}
diff --git a/src/shared/locales/tr/preferences.js b/src/shared/locales/tr/preferences.js
index 82568e0c..64c3da7f 100644
--- a/src/shared/locales/tr/preferences.js
+++ b/src/shared/locales/tr/preferences.js
@@ -47,6 +47,7 @@ export default {
'baidu-exporter': 'BaiduExporter',
'browser-extensions-tips': 'Topluluk tarafından sağlanan, ',
'baidu-exporter-help': 'Kullanım detayları için buraya tıklayın',
+ 'auto-update': 'Otomatik güncelleme',
'auto-check-update': 'Otomatik Kontrol Güncellemesi',
'last-check-update-time': 'Son Kontrol Güncelleme Saati'
}
diff --git a/src/shared/locales/zh-CN/preferences.js b/src/shared/locales/zh-CN/preferences.js
index 7d3699cf..4b735d35 100644
--- a/src/shared/locales/zh-CN/preferences.js
+++ b/src/shared/locales/zh-CN/preferences.js
@@ -39,6 +39,8 @@ export default {
'bt-tracker-tips': '推荐使用:',
'sync-tracker-tips': '从 ngosang/trackerslist 同步',
'security': '安全性',
+ 'rpc-secret': 'RPC 密钥',
+ 'rpc-secret-tips': 'RPC 密钥说明文档',
'developer': '开发者',
'mock-user-agent': '模拟用户代理(UA)',
'app-log-path': '应用日志路径',
@@ -52,6 +54,7 @@ export default {
'baidu-exporter': '百度网盘助手',
'browser-extensions-tips': '社区提供的浏览器扩展「不保证可用性」,',
'baidu-exporter-help': '点此查看使用说明',
+ 'auto-update': '自动更新',
'auto-check-update': '自动检查更新',
'last-check-update-time': '上次检查更新时间'
}
diff --git a/src/shared/locales/zh-TW/preferences.js b/src/shared/locales/zh-TW/preferences.js
index 1000f8ee..4ffc71ec 100644
--- a/src/shared/locales/zh-TW/preferences.js
+++ b/src/shared/locales/zh-TW/preferences.js
@@ -47,6 +47,7 @@ export default {
'baidu-exporter': '百度網盤助手',
'browser-extensions-tips': '社群提供的瀏覽器擴充功能「不保證可用性」,',
'baidu-exporter-help': '點此檢視使用說明',
+ 'auto-update': '自動更新',
'auto-check-update': '自動檢查更新',
'last-check-update-time': '上次檢查更新時間'
}