From 2c147178120e4326a4566547568708e9d571101e Mon Sep 17 00:00:00 2001 From: Him188 Date: Thu, 7 Nov 2024 14:27:23 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20#1154=20=E6=97=A0=E6=B3=95=E8=BF=9B?= =?UTF-8?q?=E5=85=A5=E8=B0=83=E8=AF=95=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/commonMain/kotlin/ui/settings/SettingsPage.kt | 2 +- .../src/commonMain/kotlin/ui/settings/tabs/AboutTab.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/shared/ui-settings/src/commonMain/kotlin/ui/settings/SettingsPage.kt b/app/shared/ui-settings/src/commonMain/kotlin/ui/settings/SettingsPage.kt index 14f712fa21..f49aec6d7c 100644 --- a/app/shared/ui-settings/src/commonMain/kotlin/ui/settings/SettingsPage.kt +++ b/app/shared/ui-settings/src/commonMain/kotlin/ui/settings/SettingsPage.kt @@ -146,7 +146,7 @@ fun SettingsPage( .padding(horizontal = currentWindowAdaptiveInfo().windowSizeClass.paneHorizontalPadding - 8.dp) Column(Modifier.verticalScroll(rememberScrollState())) { when (currentTab) { - SettingsTab.ABOUT -> AboutTab(tabModifier) + SettingsTab.ABOUT -> AboutTab({ vm.debugTriggerState.triggerDebugMode() }, tabModifier) SettingsTab.DEBUG -> DebugTab( vm.debugSettingsState, tabModifier, diff --git a/app/shared/ui-settings/src/commonMain/kotlin/ui/settings/tabs/AboutTab.kt b/app/shared/ui-settings/src/commonMain/kotlin/ui/settings/tabs/AboutTab.kt index 3356dff732..175dae4ba4 100644 --- a/app/shared/ui-settings/src/commonMain/kotlin/ui/settings/tabs/AboutTab.kt +++ b/app/shared/ui-settings/src/commonMain/kotlin/ui/settings/tabs/AboutTab.kt @@ -145,9 +145,9 @@ private const val MIKAN = "https://mikanime.tv/" @OptIn(DelicateCoroutinesApi::class, TestOnly::class) @Composable fun AboutTab( + onTriggerDebugMode: () -> Unit, modifier: Modifier = Modifier, vm: AboutTabViewModel = viewModel { AboutTabViewModel() }, - onTriggerDebugMode: () -> Unit = { }, ) { val context by rememberUpdatedState(LocalContext.current) val toaster = LocalToaster.current