mirror of
https://github.com/real-zony/ZonyLrcToolsX.git
synced 2026-11-25 04:17:46 +08:00
fix(desktop): 修正解密、配置和任务生命周期问题
修复 KGG/KGM 识别、密钥解码及输出文件保护;改进配置无损保存、登录会话安全和取消处理。统一新增 C# 代码风格,补齐发布许可声明及文档,并增加针对性回归测试。
This commit is contained in:
1 parent
7379571e2d
commit
8912a79168
64 files changed
+2787
-1182
No files matched your search
@@ -21,9 +21,7 @@ public static class ServiceCollectionExtensions
|
||||
services.BeginAutoDependencyInject<IWarpHttpClient>();
|
||||
|
||||
// Configure Common services
|
||||
// ConfigureConfiguration() from Common always reads config.yaml from the executable
|
||||
// folder, which breaks portable installs and read-only install locations. The desktop
|
||||
// app resolves a writable location first and binds from there instead.
|
||||
// 桌面端使用可写的配置目录,避免只读安装位置导致保存失败。
|
||||
services.ConfigureDesktopConfiguration();
|
||||
services.ConfigureLocalization();
|
||||
services.ConfigureToolService();
|
||||
@@ -43,10 +41,10 @@ public static class ServiceCollectionExtensions
|
||||
services.AddSingleton<IDialogService, DialogService>();
|
||||
services.AddSingleton<IThemeService, ThemeService>();
|
||||
|
||||
// Stores the NetEase login cookie between launches so the QR dialog is a first-run event.
|
||||
// 保存网易云登录状态。
|
||||
services.AddSingleton<NetEaseSessionStore>();
|
||||
|
||||
// Remembers a manually chosen KuGou database path (machine state, not a user preference).
|
||||
// 保存本机酷狗数据库路径。
|
||||
services.AddSingleton<KugouDatabaseStore>();
|
||||
|
||||
// Register ViewModels (Singleton to preserve state across navigation)
|
||||
|
||||
Reference in new issue
Block a user