friedow / centerpiece

Your trusty omnibox search.
MIT License
174 stars 6 forks source link

Settings instance should be a singleton #142

Open friedow opened 1 month ago

friedow commented 1 month ago

We're currently instantiating the settings struct (https://github.com/friedow/centerpiece/blob/main/client/src/settings.rs#L188) multiple times in different places. This causes the settings file to be parsed multiple times for each centerpiece startup. To acoid this, the settings struct should become a singleton.