mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-04-30 05:14:26 +02:00
feat: Add function to reset options to their default value
This commit is contained in:
parent
e6de90d300
commit
ebbaafb78e
@ -59,6 +59,7 @@ abstract class PatchOption<T>(
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Reset the [PatchOption] to its default value.
|
* Reset the [PatchOption] to its default value.
|
||||||
|
* Override this method if you need to mutate the value instead of replacing it.
|
||||||
*/
|
*/
|
||||||
open fun reset() {
|
open fun reset() {
|
||||||
uncheckedValue = default
|
uncheckedValue = default
|
||||||
|
Loading…
x
Reference in New Issue
Block a user