Browse Source

fix active option detection

PHP-GTK3
yggverse 4 months ago
parent
commit
51e62ece26
  1. 6
      src/Entity/Browser/Container/Page/Auth.php

6
src/Entity/Browser/Container/Page/Auth.php

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

Loading…
Cancel
Save