mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-19 01:13:56 +00:00
feat: Add function to reset options to their default value
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user