diff --git a/modules/features/drive/src/main/java/net/pantasystem/milktea/drive/viewmodel/DriveViewModel.kt b/modules/features/drive/src/main/java/net/pantasystem/milktea/drive/viewmodel/DriveViewModel.kt index 3c9f2c9de6..477e7b2fa4 100644 --- a/modules/features/drive/src/main/java/net/pantasystem/milktea/drive/viewmodel/DriveViewModel.kt +++ b/modules/features/drive/src/main/java/net/pantasystem/milktea/drive/viewmodel/DriveViewModel.kt @@ -406,7 +406,7 @@ class DriveViewModel @Inject constructor( } } savedStateHandle[STATE_SELECTED_FILE_PROPERTY_IDS] = emptyList() - if (uiState.value.requireSelectedResult) { + if (!uiState.value.requireSelectedResult) { savedStateHandle[STATE_SELECTABLE_MODE] = false } refresh()