Skip to content

Commit

Permalink
修复回到设置页后显示为空白, close #1744
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Mar 1, 2025
1 parent 4314925 commit 462a0dc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.runtime.rememberUpdatedState
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
Expand Down Expand Up @@ -111,7 +112,7 @@ fun SettingsScreen(
windowInsets: WindowInsets = AniWindowInsets.forPageContent(),
navigationIcon: @Composable () -> Unit = {},
) {
var lastSelectedTab by remember {
var lastSelectedTab by rememberSaveable {
mutableStateOf(initialTab)
}
val navigator: ThreePaneScaffoldNavigator<Nothing?> = rememberListDetailPaneScaffoldNavigator(
Expand Down

0 comments on commit 462a0dc

Please sign in to comment.