Skip to content

Commit

Permalink
fix(window): use correct clear history action
Browse files Browse the repository at this point in the history
Uses the correctly named clear history action.

Ref: 7ed496d
  • Loading branch information
FineFindus committed Jan 11, 2025
1 parent 1768816 commit d5cfa41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/resources/ui/window.blp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ menu primary_menu {
section {
item {
label: _("_Clear History");
action: "app.clear_history";
action: "app.clear-history";
}

item {
Expand Down
2 changes: 1 addition & 1 deletion src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ impl AppWindow {
fn set_history_list_visible(&self, history: &gio::ListStore) {
let visible = history.n_items() > 1;
self.imp().history_list.set_visible(visible);
self.action_set_enabled("app.clear_history", visible);
self.action_set_enabled("app.clear-history", visible);
}

/// Save the window size when closing the window
Expand Down

0 comments on commit d5cfa41

Please sign in to comment.