aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/configreader.vala (follow)
Commit message (Collapse)AuthorAgeLines
* Improve configuration handlingWynn Wolf Arbor2020-02-04-0/+188
This commit improves and simplifies weltschmerz's configuration handling. Obtaining and parsing the KeyFile is split out into ConfigReader, which is fully agnostic of the specific configuration values. Config now contains all configuration values in the form of primitive types or class instances, and no longer delegates access to the KeyFile structure directly. This means that the configuration file is read once, and then kept in the Config instance. Indirectly this commit also fixes a bug where weltschmerz would segfault if one of the palette entries contained an invalid value.