fix: Correctly display universal patches warning (#2570)

This commit is contained in:
Brosssh
2025-05-24 14:47:27 +02:00
committed by oSumAtrIX
parent f2ea00757a
commit 24c4cd3f99

View File

@@ -230,8 +230,8 @@ fun PatchesSelectorScreen(
// Show selection warning if enabled
viewModel.selectionWarningEnabled -> showSelectionWarning = true
// Show universal warning if enabled
viewModel.universalPatchWarningEnabled -> showUniversalWarning = true
// Show universal warning if universal patch is selected and the toggle is off
patch.compatiblePackages == null && viewModel.universalPatchWarningEnabled -> showUniversalWarning = true
// Toggle the patch otherwise
else -> viewModel.togglePatch(uid, patch)