From 9109381693410a5bc8dfbd31c68bd2e27771fe01 Mon Sep 17 00:00:00 2001 From: jitwxs Date: Mon, 2 May 2022 22:43:13 +0800 Subject: [PATCH] optimized dependency errorMsg --- MusicLyricApp/Bean/MusicLyricsVO.cs | 2 +- MusicLyricApp/SettingForm.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MusicLyricApp/Bean/MusicLyricsVO.cs b/MusicLyricApp/Bean/MusicLyricsVO.cs index a0f8516..af42cb5 100644 --- a/MusicLyricApp/Bean/MusicLyricsVO.cs +++ b/MusicLyricApp/Bean/MusicLyricsVO.cs @@ -101,7 +101,7 @@ public static class ErrorMsg public const string FUNCTION_NOT_SUPPORT = "该功能暂不可用,请等待后续更新"; public const string SONG_URL_COPY_SUCCESS = "歌曲直链,已复制到剪切板"; public const string SONG_URL_GET_FAILED = "歌曲直链,获取失败"; - public const string ROMAJI_DEPENDENCY_LOSS = "罗马音相关依赖缺失,请重新下载"; + public const string DEPENDENCY_LOSS = "缺少必须依赖,请前往项目主页下载 {0} 插件"; public const string SAVE_COMPLETE = "保存完毕,成功 {0} 跳过 {1}"; public const string GET_LATEST_VERSION_FAILED = "获取最新版本失败"; diff --git a/MusicLyricApp/SettingForm.cs b/MusicLyricApp/SettingForm.cs index 4afc57f..b089f91 100644 --- a/MusicLyricApp/SettingForm.cs +++ b/MusicLyricApp/SettingForm.cs @@ -51,7 +51,7 @@ private void ShowRomajiChangeListener(bool isEnable) // 检查依赖 if (isEnable && Constants.IpaDicDependency.Any(e => !File.Exists(e))) { - MessageBox.Show(ErrorMsg.ROMAJI_DEPENDENCY_LOSS, "提示"); + MessageBox.Show(string.Format(ErrorMsg.DEPENDENCY_LOSS, "IpaDic"), "提示"); ShowRomaji_CheckBox.Checked = false; isEnable = false;