From daaa10a96a032f8dabbba5eb622ff2d202e583eb Mon Sep 17 00:00:00 2001 From: "J. Alexander Alzate Olaya" Date: Fri, 12 Jan 2024 20:22:58 +0100 Subject: [PATCH] accounts_editor_edit_pane: Add default tooltip to undo button --- src/client/accounts/accounts-editor-edit-pane.vala | 2 +- ui/accounts_editor_edit_pane.ui | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/accounts/accounts-editor-edit-pane.vala b/src/client/accounts/accounts-editor-edit-pane.vala index 9d5156de..66aeb710 100644 --- a/src/client/accounts/accounts-editor-edit-pane.vala +++ b/src/client/accounts/accounts-editor-edit-pane.vala @@ -160,7 +160,7 @@ internal class Accounts.EditorEditPane : Application.Command next_undo = this.commands.peek_undo(); this.undo_button.set_tooltip_text( (next_undo != null && next_undo.undo_label != null) - ? next_undo.undo_label : "" + ? next_undo.undo_label : _("Undo") ); // Ensure the account is notified that is has changed. This diff --git a/ui/accounts_editor_edit_pane.ui b/ui/accounts_editor_edit_pane.ui index 6d9a9e8a..b30bf61d 100644 --- a/ui/accounts_editor_edit_pane.ui +++ b/ui/accounts_editor_edit_pane.ui @@ -39,6 +39,7 @@ True True + Undo edt.undo