fix: save cli config as a toml file (#4652)
Signed-off-by: Omar Mohamed <mohamed.omar67492@gmail.com>
This commit is contained in:
1 parent
03801e1312
commit
d8a6c265ab
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user