diff --git a/publish/changeLog.md b/publish/changeLog.md index 65bda55e..3aa60514 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -1,8 +1,12 @@ +由于软件内功能在设计时只考虑简单便捷性,是否对新手友好并不是我们考虑的重点,功能的新增、变更会在更新日志中注明,不会在软件内做指引提示, +因此为了更愉快地使用本软件,我们建议在使用新版本时阅读一遍更新日志以了解软件的变更情况,同时若遇到问题可以去阅读常见问题找解决方案 + ### 新增 - 新增桌面歌词设置字体加粗设置,可以到设置-桌面歌词设置-加粗字体修改 - 新增是否自动下载更新设置,默认开启,可以去设置-软件更新更改 - 新增当前版本更新日志显示弹窗(建议大家阅读更新日志以了解当前版本的变化),在更新版本后将自动弹出 +- 新增是否在更新版本的首次启动时显示更新日志弹窗设置,默认开启,可以去设置-软件更新更改 - 添加wy、tx源逐字歌词的支持 ### 优化 diff --git a/src/common/defaultSetting.ts b/src/common/defaultSetting.ts index 8a93be4d..726ffb20 100644 --- a/src/common/defaultSetting.ts +++ b/src/common/defaultSetting.ts @@ -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', diff --git a/src/common/types/app_setting.d.ts b/src/common/types/app_setting.d.ts index 0459a10e..3cd6c12c 100644 --- a/src/common/types/app_setting.d.ts +++ b/src/common/types/app_setting.d.ts @@ -73,6 +73,11 @@ declare global { */ 'common.tryAutoUpdate': boolean + /** + * 更新版本后是否显示变更日志 + */ + 'common.showChangeLog': boolean + /** * 启动时自动播放歌曲 */ diff --git a/src/lang/en-us.json b/src/lang/en-us.json index 6749f580..8c392067 100644 --- a/src/lang/en-us.json +++ b/src/lang/en-us.json @@ -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", diff --git a/src/lang/zh-cn.json b/src/lang/zh-cn.json index e4c8f853..a6c743cd 100644 --- a/src/lang/zh-cn.json +++ b/src/lang/zh-cn.json @@ -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": "歌单", diff --git a/src/lang/zh-tw.json b/src/lang/zh-tw.json index 33129e4d..bfa96b60 100644 --- a/src/lang/zh-tw.json +++ b/src/lang/zh-tw.json @@ -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": "歌單", diff --git a/src/renderer/core/useApp/useUpdate.ts b/src/renderer/core/useApp/useUpdate.ts index 5db35018..600e31a6 100644 --- a/src/renderer/core/useApp/useUpdate.ts +++ b/src/renderer/core/useApp/useUpdate.ts @@ -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({ diff --git a/src/renderer/views/Setting/components/SettingUpdate.vue b/src/renderer/views/Setting/components/SettingUpdate.vue index 7bc9fd1c..4bd52a2a 100644 --- a/src/renderer/views/Setting/components/SettingUpdate.vue +++ b/src/renderer/views/Setting/components/SettingUpdate.vue @@ -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')}}