feat: 新增导入导出功能,支持备份和恢复 PATH 配置

- 添加 import_export 模块,实现 JSON 格式的导入导出
- 在界面中添加导入和导出按钮,并配置回调函数
- 更新配置文件,增加相关文本和状态提示
- 在非管理员权限下禁用导入按钮
This commit is contained in:
2026-03-25 19:49:47 +08:00
parent ce232cb024
commit 55d0f80743
9 changed files with 498 additions and 64 deletions
+14
View File
@@ -0,0 +1,14 @@
#ifndef IMPORT_EXPORT_H
#define IMPORT_EXPORT_H
#include "utils/string_ext.h"
#define EXPORT_VERSION "1.0"
// 导出 PATH 到文件
int export_paths_to_file(const StringList *list, const char *filepath, int is_system);
// 从文件导入 PATH
int import_paths_from_file(const char *filepath, StringList *list);
#endif // IMPORT_EXPORT_H