新增是否在更新版本的首次启动时显示更新日志弹窗设置

This commit is contained in:
lyswhut
2023-02-05 20:40:30 +08:00
parent dd5bffe071
commit 07899327f1
8 changed files with 16 additions and 0 deletions
+1
View File
@@ -17,6 +17,7 @@ const defaultSetting: LX.AppSetting = {
'common.controlBtnPosition': process.platform === 'darwin' ? 'left' : 'right',
'common.playBarProgressStyle': 'mini',
'common.tryAutoUpdate': true,
'common.showChangeLog': true,
'player.startupAutoPlay': false,
'player.togglePlayMethod': 'listLoop',
+5
View File
@@ -73,6 +73,11 @@ declare global {
*/
'common.tryAutoUpdate': boolean
/**
* 更新版本后是否显示变更日志
*/
'common.showChangeLog': boolean
/**
* 启动时自动播放歌曲
*/
+1
View File
@@ -467,6 +467,7 @@
"setting__update_new_version": "Found a new version, hurry up and update~🚀🚀",
"setting__update_open_version_modal_btn": "open update window",
"setting__update_progress": "state:",
"setting__update_show_change_log": "Show changelog on first boot after version update",
"setting__update_try_auto_update": "Attempt to download updates automatically when a new version is found",
"setting__update_unknown": "Unknown",
"song_list": "Playlists",
+1
View File
@@ -469,6 +469,7 @@
"setting__update_new_version": "发现新版本,赶快去更新吧~🚀🚀",
"setting__update_open_version_modal_btn": "打开更新窗口",
"setting__update_progress": "状态:",
"setting__update_show_change_log": "更新版本后的首次启动时显示更新日志",
"setting__update_try_auto_update": "发现新版本时尝试自动下载更新",
"setting__update_unknown": "未知",
"song_list": "歌单",
+1
View File
@@ -468,6 +468,7 @@
"setting__update_new_version": "發現新版本,趕快去更新吧~🚀🚀",
"setting__update_open_version_modal_btn": "打開更新窗口",
"setting__update_progress": "狀態:",
"setting__update_show_change_log": "更新版本後的首次啟動時顯示更新日誌",
"setting__update_try_auto_update": "發現新版本時嘗試自動下載更新",
"setting__update_unknown": "未知",
"song_list": "歌單",
+1
View File
@@ -46,6 +46,7 @@ export default () => {
void getLastStartInfo().then((version) => {
if (version == process.versions.app) return
saveLastStartInfo(process.versions.app)
if (!appSetting['common.showChangeLog']) return
if (version) {
if (compareVer(process.versions.app, version) < 0) {
void dialog({
@@ -3,6 +3,8 @@ dt#update {{$t('setting__update')}}
dd
.gap-top
base-checkbox(id="setting__update_tryAutoUpdate" :modelValue="appSetting['common.tryAutoUpdate']" @update:modelValue="updateSetting({'common.tryAutoUpdate': $event})" :label="$t('setting__update_try_auto_update')")
.gap-top
base-checkbox(id="setting__update_showChangeLog" :modelValue="appSetting['common.showChangeLog']" @update:modelValue="updateSetting({'common.showChangeLog': $event})" :label="$t('setting__update_show_change_log')")
.gap-top
p.small
| {{$t('setting__update_latest_label')}}{{versionInfo.newVersion ? versionInfo.newVersion.version : $t('setting__update_unknown')}}