Skip to content

Commit

Permalink
Remove GQL Debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Syer10 committed Nov 18, 2024
1 parent 5dc7104 commit efa0f22
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ class ServerConfig(

// misc
val debugLogsEnabled: MutableStateFlow<Boolean> by OverrideConfigValue(BooleanConfigAdapter)
val gqlDebugLogsEnabled: MutableStateFlow<Boolean> by OverrideConfigValue(BooleanConfigAdapter)
val systemTrayEnabled: MutableStateFlow<Boolean> by OverrideConfigValue(BooleanConfigAdapter)

// backup
Expand Down
10 changes: 0 additions & 10 deletions src/main/kotlin/suwayomi/tachidesk/launcher/ui/Misc.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit efa0f22

Please sign in to comment.