From efa0f22bdc32d8cc17f15988579b76055a449c90 Mon Sep 17 00:00:00 2001 From: Syer10 Date: Sun, 17 Nov 2024 21:06:55 -0500 Subject: [PATCH] Remove GQL Debug logs --- .../suwayomi/tachidesk/launcher/LauncherViewModel.kt | 1 - .../suwayomi/tachidesk/launcher/config/ServerConfig.kt | 1 - src/main/kotlin/suwayomi/tachidesk/launcher/ui/Misc.kt | 10 ---------- 3 files changed, 12 deletions(-) diff --git a/src/main/kotlin/suwayomi/tachidesk/launcher/LauncherViewModel.kt b/src/main/kotlin/suwayomi/tachidesk/launcher/LauncherViewModel.kt index 9b43c4d..5a53353 100644 --- a/src/main/kotlin/suwayomi/tachidesk/launcher/LauncherViewModel.kt +++ b/src/main/kotlin/suwayomi/tachidesk/launcher/LauncherViewModel.kt @@ -101,7 +101,6 @@ class LauncherViewModel { // Misc val debug = config.asStateFlow { it.debugLogsEnabled } - val gqlDebug = config.asStateFlow { it.gqlDebugLogsEnabled } val systemTray = config.asStateFlow { it.systemTrayEnabled } // Backup diff --git a/src/main/kotlin/suwayomi/tachidesk/launcher/config/ServerConfig.kt b/src/main/kotlin/suwayomi/tachidesk/launcher/config/ServerConfig.kt index c5f8c41..6579b1e 100644 --- a/src/main/kotlin/suwayomi/tachidesk/launcher/config/ServerConfig.kt +++ b/src/main/kotlin/suwayomi/tachidesk/launcher/config/ServerConfig.kt @@ -96,7 +96,6 @@ class ServerConfig( // misc val debugLogsEnabled: MutableStateFlow by OverrideConfigValue(BooleanConfigAdapter) - val gqlDebugLogsEnabled: MutableStateFlow by OverrideConfigValue(BooleanConfigAdapter) val systemTrayEnabled: MutableStateFlow by OverrideConfigValue(BooleanConfigAdapter) // backup diff --git a/src/main/kotlin/suwayomi/tachidesk/launcher/ui/Misc.kt b/src/main/kotlin/suwayomi/tachidesk/launcher/ui/Misc.kt index 0f6bed8..6670e38 100644 --- a/src/main/kotlin/suwayomi/tachidesk/launcher/ui/Misc.kt +++ b/src/main/kotlin/suwayomi/tachidesk/launcher/ui/Misc.kt @@ -41,16 +41,6 @@ fun Misc( .launchIn(scope) }.bind(CC().wrap()) - jCheckBox("GraphQL Debug logging", selected = vm.gqlDebug.value) { - toolTipText = - "Use this to toggle extra logging to the console window to help debug graphql issues." // todo improve - actions() - .onEach { - vm.gqlDebug.value = isSelected - }.flowOn(Dispatchers.Default) - .launchIn(scope) - }.bind(CC().wrap()) - jCheckBox("System Tray", selected = vm.systemTray.value) { toolTipText = "Use this to toggle Suwayomi showing in the system tray." // todo improve actions()