aboutsummaryrefslogtreecommitdiffstats
path: root/tests/config.rs
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-02 13:22:44 +0100
committersalmonik <salmonik@tuta.io>2026-11-02 13:22:44 +0100
commit2c044de38f6adcfbd3cc64eb9fa55e67d61e6f94 (patch)
tree24a7a55a70b2235d115d9861d24385a61725e7b8 /tests/config.rs
parentseek: jump within the current track from the CLI and over MPRIS (diff)
downloadrsplayer-2c044de38f6adcfbd3cc64eb9fa55e67d61e6f94.tar.gz
rsplayer-2c044de38f6adcfbd3cc64eb9fa55e67d61e6f94.zip
config: parse the config once and reuse it until the file changes
Every command, status line and notification went through Config::load, which reads *and* rewrites config.toml, so `rsp status` alone touched the file on each call. The daemon now keeps a parsed copy and only stats the file to notice outside edits, so `rsp settings set` still takes effect immediately. Config::save refreshes the cached copy too, and Config::config_path is shared by the loader and the cache.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions