From 87a078bce6a13cebab353478899f984520da932c Mon Sep 17 00:00:00 2001 From: Ferdinand Schober Date: Sat, 7 Feb 2026 17:52:35 +0100 Subject: [PATCH] add TODO comment --- src/config.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index 767e79e..756c99f 100644 --- a/src/config.rs +++ b/src/config.rs @@ -450,9 +450,15 @@ impl Config { /* the new config */ let new_config = self.config_toml.clone().unwrap_or_default(); // let new_config = toml_edit::ser::to_document::(&new_config).expect("fixme"); - let new_config = toml_edit::ser::to_string_pretty(&new_config).expect("todo"); + let new_config = toml_edit::ser::to_string_pretty(&new_config).expect("config"); - /* TODO merge documents */ + /* + * TODO merge documents => eventually we might want to split this up into clients configured + * via the config file and clients managed through the GUI / frontend. + * The latter should be saved to $XDG_DATA_HOME instead of $XDG_CONFIG_HOME, + * and clients configured through .config could be made permanent. + * For now we just override the config file. + */ /* write new config to file */ fs::write(&self.config_path, new_config)?;