mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 19:22:22 +01:00
Fixed some UI things and nightly
This commit is contained in:
@@ -5,13 +5,14 @@ import 'package:get/get.dart';
|
||||
import 'package:get_storage/get_storage.dart';
|
||||
|
||||
import 'package:reboot_launcher/src/util/binary.dart';
|
||||
import 'package:reboot_launcher/src/util/server.dart';
|
||||
|
||||
class ServerController extends GetxController {
|
||||
late final TextEditingController host;
|
||||
late final TextEditingController port;
|
||||
late final RxBool embedded;
|
||||
late final RxBool started;
|
||||
Process? process;
|
||||
late final RxBool warning;
|
||||
late RxBool started;
|
||||
|
||||
ServerController() {
|
||||
var storage = GetStorage("server");
|
||||
@@ -24,7 +25,12 @@ class ServerController extends GetxController {
|
||||
embedded = RxBool(storage.read("embedded") ?? true);
|
||||
embedded.listen((value) => storage.write("embedded", value));
|
||||
|
||||
warning = RxBool(storage.read("warning") ?? true);
|
||||
warning.listen((value) => storage.write("warning", value));
|
||||
|
||||
started = RxBool(false);
|
||||
isLawinPortFree()
|
||||
.then((value) => started = RxBool(!value));
|
||||
}
|
||||
|
||||
Future kill() async {
|
||||
|
||||
Reference in New Issue
Block a user