diff --git a/publish/changeLog.md b/publish/changeLog.md index 68fab6e8..afb02435 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -6,6 +6,7 @@ - 添加歌曲到“我的列表”时,若按住`ctrl`键(Mac对应`Command`),则不会自动关闭添加窗口,这对想要将同一首(一批)歌曲添加到多个列表时会很有用 - 支持mg源逐字歌词的播放,感谢 @mozbugbox 提供的帮助 +- 添加歌曲列表更新操作的二次确认 ### 修复 diff --git a/src/lang/en-us.json b/src/lang/en-us.json index a44f3cc2..78b064f1 100644 --- a/src/lang/en-us.json +++ b/src/lang/en-us.json @@ -127,6 +127,7 @@ "lists__sort_list": "Sort songs", "lists__source_detail": "Playlist Page", "lists__sync": "Update", + "lists__sync_confirm_tip": "This will replace the songs in {name} with the songs in the online list, are you sure you want to update?", "load_list_file_error_detail": "We have helped you back up the old list file to {path}\nIt is stored in JSON format, you can try to repair and restore it manually\n\nError details: {detail}", "load_list_file_error_title": "Error loading playlist data", "loding_list": "Loading...", diff --git a/src/lang/zh-cn.json b/src/lang/zh-cn.json index a6eded57..1214d9e7 100644 --- a/src/lang/zh-cn.json +++ b/src/lang/zh-cn.json @@ -127,6 +127,7 @@ "lists__sort_list": "排序歌曲", "lists__source_detail": "歌单详情页", "lists__sync": "更新", + "lists__sync_confirm_tip": "这将会把 {name} 内的歌曲替换成在线列表的歌曲,你确认要更新吗?", "load_list_file_error_detail": "我们已经帮你把旧的列表文件备份到{path}\n它以 JSON 格式存储,你可以尝试手动修复并恢复它\n\n错误详情:{detail}", "load_list_file_error_title": "播放列表数据加载错误(建议到GitHub或加群反馈)", "loding": "加载中...", diff --git a/src/lang/zh-tw.json b/src/lang/zh-tw.json index dff22825..190c4be0 100644 --- a/src/lang/zh-tw.json +++ b/src/lang/zh-tw.json @@ -127,6 +127,7 @@ "lists__sort_list": "排序歌曲", "lists__source_detail": "歌單詳情頁", "lists__sync": "更新", + "lists__sync_confirm_tip": "這將會把 {name} 內的歌曲替換成在線列表的歌曲,你確認要更新嗎?", "load_list_file_error_detail": "我們已經幫你把舊的列表文件備份到{path}\n它以 JSON 格式存儲,你可以嘗試手動修復並恢復它\n\n錯誤詳情:{detail}", "load_list_file_error_title": "播放列表數據加載錯誤", "loding": "加載中...", diff --git a/src/renderer/views/list/components/MyLists.vue b/src/renderer/views/list/components/MyLists.vue index 3990a09f..a762b519 100644 --- a/src/renderer/views/list/components/MyLists.vue +++ b/src/renderer/views/list/components/MyLists.vue @@ -352,7 +352,13 @@ export default { this.handleExportList(index) break case 'sync': - this.handleSyncSourceList(userLists[index]) + this.$dialog.confirm({ + message: this.$t('lists__sync_confirm_tip', { name: userLists[index].name }), + confirmButtonText: this.$t('lists__remove_tip_button'), + }).then(isSync => { + if (!isSync) return + this.handleSyncSourceList(userLists[index]) + }) break case 'remove': this.$dialog.confirm({