|
@@ -108,7 +108,7 @@ class ClashService extends GetxController {
|
|
|
|
|
|
try {
|
|
|
controllers.global.updateMsg("启动内核---${controllers.config.config.value.selected}");
|
|
|
- if (controllers.config.config.value.selected == 'init_proxy.yaml') {
|
|
|
+ if (controllers.config.config.value.selected == controllers.config.config.value.selected) {
|
|
|
controllers.global.updateMsg("启动内核初始化");
|
|
|
} else {
|
|
|
controllers.global.updateMsg("启动内核");
|
|
@@ -351,6 +351,7 @@ class ClashService extends GetxController {
|
|
|
final file = File(filePath);
|
|
|
await file.writeAsString(configYaml);
|
|
|
print('配置文件已成功保存到: $filePath');
|
|
|
+
|
|
|
} catch (e) {
|
|
|
print('保存配置文件时发生错误: $e');
|
|
|
throw Exception('无法保存配置文件');
|