grab focus on first widget

This commit is contained in:
yggverse 2024-08-01 22:05:25 +03:00
parent aff4229d06
commit c840091f62

View file

@ -173,6 +173,13 @@ class About
// Tune up the label // Tune up the label
if ($label = $dialog->get_message_area()->get_children()) if ($label = $dialog->get_message_area()->get_children())
{ {
if (empty($label[0]))
{
throw new Exception;
}
$label[0]->grab_focus();
if (empty($label[1])) if (empty($label[1]))
{ {
throw new Exception; throw new Exception;