|
@@ -166,10 +166,11 @@ class ClashService extends GetxController {
|
|
|
}
|
|
|
|
|
|
Future<bool> initClashCoreConfig() async {
|
|
|
- controllers.config.config.value.selected = Files.makeProxyConfig.path;
|
|
|
- //await makeInitConfig();
|
|
|
+ controllers.config.config.value.selected = Files.makeInitProxyConfig.path;
|
|
|
+ await makeInitConfig();
|
|
|
+
|
|
|
+ await controllers.global.checkAllCoresStopped();
|
|
|
|
|
|
- await startClashCore();
|
|
|
if (coreStatus.value == RunningState.error) {
|
|
|
controllers.global.updateMsg("启动内核失败...");
|
|
|
return false;
|