Skip to content

Commit

Permalink
fix: regions not being selectable
Browse files Browse the repository at this point in the history
  • Loading branch information
mmstick committed Nov 7, 2024
1 parent 978f272 commit 26a3c7e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cosmic-settings/src/pages/time/region.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ impl Page {
let is_selected = self
.region
.as_ref()
.map_or(false, |locale| locale.lang_code == locale.lang_code);
.map_or(false, |l| l.lang_code == locale.lang_code);

let button =
widget::settings::item_row(vec![widget::text::body(&locale.region_name)
Expand Down Expand Up @@ -603,17 +603,17 @@ mod formatting {
time_txt = fl!("formatting", "time");
date_and_time_txt = fl!("formatting", "date-and-time");
numbers_txt = fl!("formatting", "numbers");
measurement_txt = fl!("formatting", "measurement");
paper_txt = fl!("formatting", "paper");
// measurement_txt = fl!("formatting", "measurement");
// paper_txt = fl!("formatting", "paper");
region_txt = fl!("region");
});

let dates_label = [&descriptions[dates_txt], ":"].concat();
let time_label = [&descriptions[time_txt], ":"].concat();
let date_and_time_label = [&descriptions[date_and_time_txt], ":"].concat();
let numbers_label = [&descriptions[numbers_txt], ":"].concat();
let measurement_label = [&descriptions[measurement_txt], ":"].concat();
let paper_label = [&descriptions[paper_txt], ":"].concat();
// let measurement_label = [&descriptions[measurement_txt], ":"].concat();
// let paper_label = [&descriptions[paper_txt], ":"].concat();

Section::default()
.title(fl!("formatting"))
Expand Down

0 comments on commit 26a3c7e

Please sign in to comment.