Merge pull request #217 from safing/feature/config-annotation-ui-reload

Add new config annotation for settings that require a UI reload
This commit is contained in:
Daniel Hovie 2023-09-13 15:28:28 +02:00 committed by GitHub
commit b6c86f30dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,6 +112,13 @@ const (
// when the user has a certain feature ID in the subscription plan. // when the user has a certain feature ID in the subscription plan.
// The type is []string or string. // The type is []string or string.
RequiresFeatureID = "safing/portmaster:ui:config:requires-feature" 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. // QuickSettingsAction defines the action of a quick setting.