From 115206bcc6c26e9733ca336019a693556857f2c1 Mon Sep 17 00:00:00 2001 From: WenHao2130 <98936399+WenHao2130@users.noreply.github.com> Date: Thu, 24 Jul 2025 19:43:56 +0800 Subject: [PATCH] manager: Remove Loading Dialog when enable/disable the module (#291) Magic Mount is fast enough that there is almost no need to display a loading animation while waiting for the backend to finish processing. Signed-off-by: WenHao2130 --- .../app/src/main/java/com/sukisu/ultra/ui/screen/Module.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/manager/app/src/main/java/com/sukisu/ultra/ui/screen/Module.kt b/manager/app/src/main/java/com/sukisu/ultra/ui/screen/Module.kt index 72709e38..b5722a74 100644 --- a/manager/app/src/main/java/com/sukisu/ultra/ui/screen/Module.kt +++ b/manager/app/src/main/java/com/sukisu/ultra/ui/screen/Module.kt @@ -843,10 +843,8 @@ private fun ModuleList( }, onCheckChanged = { scope.launch { - val success = loadingDialog.withLoading { - withContext(Dispatchers.IO) { - toggleModule(module.dirId, !module.enabled) - } + val success = withContext(Dispatchers.IO) { + toggleModule(module.dirId, !module.enabled) } if (success) { viewModel.fetchModuleList()