refactor : inspection

fix : module list remove injection
This commit is contained in:
2025-09-27 12:39:25 +03:30
parent d9a18c968b
commit 0a98c57d75
12 changed files with 210 additions and 131 deletions

View File

@@ -66,6 +66,18 @@ class ModulesLogic extends GetxController {
getSliders();
}
@override
void onClose() {
eLog("ModulesLogic closed");
super.onClose();
}
@override
void dispose() {
eLog("ModulesLogic disposed");
super.dispose();
}
void saveModule(Module module) {
tokenService.saveModule(module);
tokenService.appModule.value = module;
@@ -102,9 +114,9 @@ class ModulesLogic extends GetxController {
isLoading.value = !isLoading.value;
}
var args = await Get.toNamed(target.key, arguments: module);
await Get.toNamed(target.key, arguments: module);
if (target.value?[1] != null && args == -1) {
if (target.value?[1] != null) {
await target.value?[1]?.call();
}
}