mirror of
https://github.com/safing/portbase
synced 2025-09-01 10:09:50 +00:00
Add new config annotation for settings that require a UI reload
This commit is contained in:
parent
d777cd6809
commit
65a9371fec
1 changed files with 7 additions and 0 deletions
|
@ -112,6 +112,13 @@ const (
|
|||
// when the user has a certain feature ID in the subscription plan.
|
||||
// The type is []string or string.
|
||||
RequiresFeatureID = "safing/portmaster:ui:config:requires-feature"
|
||||
|
||||
// RequiresUIReloadAnnotation can be used to inform the UI that changing the value
|
||||
// of the annotated setting requires a full reload of the user interface.
|
||||
// The value of this annotation does not matter as the sole presence of
|
||||
// the annotation key is enough. Though, users are advised to set the value
|
||||
// of this annotation to true.
|
||||
RequiresUIReloadAnnotation = "safing/portmaster:ui:requires-reload"
|
||||
)
|
||||
|
||||
// QuickSettingsAction defines the action of a quick setting.
|
||||
|
|
Loading…
Add table
Reference in a new issue