Files
Alexandr Stelnykovych 8f9dcd5924 fix(config): prevent late option registration from losing saved values
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
2026-03-12 16:57:42 +02:00
..
2024-08-09 18:15:48 +03:00
2024-08-09 18:15:48 +03:00
2024-08-09 18:15:48 +03:00
2024-08-09 18:15:48 +03:00
2024-08-09 18:15:48 +03:00