fix active option detection

This commit is contained in:
yggverse 2024-08-03 16:50:31 +03:00
parent a5a798093d
commit 51e62ece26

View file

@ -190,8 +190,10 @@ class Auth
// Listen for user chose
if (GtkResponseType::OK == $this->gtk->run())
{
// Get active option
// Find active option
foreach ($this->_options as $id => $option)
{
if ($option->get_active())
{
// Auth
if ($id)
@ -234,6 +236,8 @@ class Auth
}
}
}
$this->gtk->destroy();
return true;