Skip to content

Commit

Permalink
Merge pull request #152 from salim-b/patch-1
Browse files Browse the repository at this point in the history
Fix typo in settings key
  • Loading branch information
rickykresslein authored Oct 13, 2024
2 parents f402a16 + 67a6e98 commit 39168d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2303,7 +2303,7 @@ impl Furtherance {
charts_breakdown_by_selection_column = charts_breakdown_by_selection_column
.push(self.report.selection_time_recorded_chart.view());
}
if self.fur_settings.show_chart_seleciton_earnings {
if self.fur_settings.show_chart_selection_earnings {
charts_breakdown_by_selection_column = charts_breakdown_by_selection_column
.push(self.report.selection_earnings_recorded_chart.view());
}
Expand Down Expand Up @@ -2848,7 +2848,7 @@ impl Furtherance {
checkbox(
self.localization
.get_message("earnings-for-selection", None),
self.fur_settings.show_chart_seleciton_earnings
self.fur_settings.show_chart_selection_earnings
)
.on_toggle_maybe(
if self.fur_settings.show_chart_breakdown_by_selection {
Expand Down
6 changes: 3 additions & 3 deletions src/models/fur_settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub struct FurSettings {
pub show_chart_average_time: bool,
pub show_chart_breakdown_by_selection: bool,
pub show_chart_earnings: bool,
pub show_chart_seleciton_earnings: bool,
pub show_chart_selection_earnings: bool,
pub show_chart_selection_time: bool,
pub show_chart_time_recorded: bool,
pub show_chart_total_earnings_box: bool,
Expand Down Expand Up @@ -87,7 +87,7 @@ impl Default for FurSettings {
show_chart_average_time: true,
show_chart_breakdown_by_selection: true,
show_chart_earnings: true,
show_chart_seleciton_earnings: true,
show_chart_selection_earnings: true,
show_chart_selection_time: true,
show_chart_time_recorded: true,
show_chart_total_earnings_box: true,
Expand Down Expand Up @@ -272,7 +272,7 @@ impl FurSettings {
&mut self,
value: &bool,
) -> Result<(), std::io::Error> {
self.show_chart_seleciton_earnings = value.to_owned();
self.show_chart_selection_earnings = value.to_owned();
self.save()
}

Expand Down

0 comments on commit 39168d1

Please sign in to comment.