mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-06-08 11:25:43 +02:00
fix: Correctly display universal patches warning (#2570)
This commit is contained in:
parent
1c5373ff61
commit
7c5552f93f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user