mirror of
https://github.com/safing/portmaster.git
synced 2026-06-19 20:44:35 +00:00
Config options registered after loadConfig() runs were silently discarded — ReplaceConfig() only applies disk values to already-known options, so any module registering in Start() rather than New() would always reset to its DefaultValue on every restart. Changes: - base/notifications: move prep()/registerConfig() from Start() to New(), ensuring all options exist before loadConfig() runs - base/config: introduce cfgInitialized flag, set unconditionally in start() before loadConfig() - base/config: add guard in Register() that rejects registrations after config is initialized, making the violation explicit Fixes: core/useSystemNotifications always restoring to true despite being saved as false in config.json https://github.com/safing/portmaster/issues/2020