fix: Correctly display universal patches warning (#2570)

This commit is contained in:
Brosssh 2025-05-24 14:47:27 +02:00 committed by GitHub
parent 1c5373ff61
commit 7c5552f93f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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