Skip to content

Commit

Permalink
Change .YML -> yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rnd-ash committed May 1, 2024
1 parent 1a880ee commit 9852141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config_app/src/ui/configuration/egs_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ impl InterfacePage for EgsConfigPage {
ui.label("Save to YML, edit, then load!");
ui.colored_label(Color32::RED, "EDITING CALIBRATIONS IS SUPER DANGEROUS. ENSURE YOU KNOW WHAT YOU ARE DOING");
if ui.button("Save to YML").clicked() {
if let Some(f) = rfd::FileDialog::new().add_filter("YML", &[".yml"]).save_file() {
if let Some(f) = rfd::FileDialog::new().add_filter("yml", &["yml"]).save_file() {
let dump = match editing {
CalibrationSection::Hyraulic => serde_yaml::to_string(&interpreted.hydr_cal).unwrap(),
CalibrationSection::Mechanical => serde_yaml::to_string(&interpreted.mech_cal).unwrap(),
Expand All @@ -406,7 +406,7 @@ impl InterfacePage for EgsConfigPage {
}
}
if ui.button("Load from file").clicked() {
if let Some(f) = rfd::FileDialog::new().add_filter("YML", &[".yml"]).pick_file() {
if let Some(f) = rfd::FileDialog::new().add_filter("yml", &["yml"]).pick_file() {
let mut r = File::open(f.clone()).unwrap();
let mut buf = Vec::new();
r.read_to_end(&mut buf).unwrap();
Expand Down

0 comments on commit 9852141

Please sign in to comment.