Skip to content

Fix typo in settings key #152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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