From 65a9371fec2bf541fd49d601f684f411a22a4bba Mon Sep 17 00:00:00 2001 From: Patrick Pacher Date: Wed, 13 Sep 2023 10:38:37 +0200 Subject: [PATCH] Add new config annotation for settings that require a UI reload --- config/option.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/option.go b/config/option.go index 6122ffb..ba4fa7b 100644 --- a/config/option.go +++ b/config/option.go @@ -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.