Skip to content

Commit

Permalink
Set last button as active widget
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Mar 1, 2024
1 parent 946ec22 commit 59862de
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Widgets/MessageDialog.vala
Expand Up @@ -291,6 +291,12 @@ public class Granite.MessageDialog : Granite.Dialog {
get_content_area ().append (message_grid);

add_css_class (Granite.STYLE_CLASS_MESSAGE_DIALOG);

map.connect (() => {
//Meh...
var last_button = get_content_area ().get_next_sibling ().get_last_child ().get_last_child ();
focus_widget = last_button;
});
}

/**
Expand Down

0 comments on commit 59862de

Please sign in to comment.