alroyso 1 an în urmă
părinte
comite
1bd368c246
1 a modificat fișierele cu 6 adăugiri și 1 ștergeri
  1. 6 1
      lib/app/controller/core.dart

+ 6 - 1
lib/app/controller/core.dart

@@ -88,7 +88,12 @@ class CoreController extends GetxController {
   }
 
   Future<void> changeConfig(String configPath) async{
-    await dio.put('/configs', data: {"path": configPath});
+    try{
+      await dio.put('/configs', data: {"path": configPath});
+    }
+    catch(e){
+      await dio.put('/configs', data: {"path": configPath});
+    }
   }
 
   // type updateConfigRequest struct {