fix: save cli config as a toml file (#4652)

Signed-off-by: Omar Mohamed <mohamed.omar67492@gmail.com>
This commit is contained in:
Omar Mohamed Khallaf authored and GitHub committed 2025-10-03 19:46:37 -07:00
1 parent 03801e1312
commit d8a6c265ab
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -62,7 +62,7 @@ impl CliSettings {
return None;
};
let Some(data) = serde_json5::from_str::<CliSettings>(&data).ok() else {
let Some(data) = toml::from_str::<CliSettings>(&data).ok() else {
warn!("failed to parse global settings file");
return None;
};
+1 -1
View File
@@ -530,7 +530,7 @@ impl Workspace {
}
pub(crate) fn global_settings_file() -> PathBuf {
Self::dioxus_data_dir().join("settings.json")
Self::dioxus_data_dir().join("settings.toml")
}
}