Skip to content

Commit

Permalink
Fix #1154 无法进入调试模式
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Nov 7, 2024
1 parent 6335f94 commit 2c14717
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c14717

Please sign in to comment.