|
@@ -99,11 +99,12 @@ class GlobalController extends GetxController {
|
|
|
await controllers.config.initConfig();
|
|
|
}
|
|
|
|
|
|
- // 确保初始配置文件存在
|
|
|
+ // 确保初始配置文件存在并设置为当前配置
|
|
|
final initProxyConfig = File(path.join(Paths.config.path, Files.makeInitProxyConfig.path));
|
|
|
if (!await initProxyConfig.exists()) {
|
|
|
await controllers.service.makeInitConfig();
|
|
|
}
|
|
|
+ controllers.config.config.value.selected = Files.makeInitProxyConfig.path;
|
|
|
|
|
|
if (Platform.isWindows) {
|
|
|
await controllers.service.startClashCore();
|