From 6b83af197f91b9f783d3b8fcc9d0a944dcb2ce26 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 18 May 2021 14:11:35 +0200 Subject: [PATCH] Move useSystemNotifications to notifications module --- core/config.go | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/core/config.go b/core/config.go index f0ebd939..e30ad6c2 100644 --- a/core/config.go +++ b/core/config.go @@ -13,8 +13,6 @@ var ( CfgNetworkServiceKey = "core/networkService" defaultNetworkServiceMode bool - - CfgUseSystemNotificationsKey = "core/useSystemNotifications" ) func init() { @@ -27,7 +25,7 @@ func init() { } func registerConfig() error { - err := config.Register(&config.Option{ + if err := config.Register(&config.Option{ Name: "Network Service", Key: CfgNetworkServiceKey, Description: "Use the Portmaster as a network service, where applicable. You will have to take care of lots of network setup yourself in order to run this properly and securely.", @@ -39,25 +37,7 @@ func registerConfig() error { config.DisplayOrderAnnotation: 513, config.CategoryAnnotation: "Network Service", }, - }) - if err != nil { - return err - } - - err = config.Register(&config.Option{ - Name: "Desktop Notifications", - Key: CfgUseSystemNotificationsKey, - Description: "In addition to showing notifications in the Portmaster App, also send them to the Desktop. This requires the Portmaster Notifier to be running.", - OptType: config.OptTypeBool, - ExpertiseLevel: config.ExpertiseLevelUser, - ReleaseLevel: config.ReleaseLevelStable, - DefaultValue: true, // TODO: turn off by default on unsupported systems - Annotations: config.Annotations{ - config.DisplayOrderAnnotation: -15, - config.CategoryAnnotation: "User Interface", - }, - }) - if err != nil { + }); err != nil { return err }