mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-06-08 19:35:46 +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
|
// 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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user