deactivate sensibility instead of hide identity name entry

This commit is contained in:
yggverse 2024-08-03 10:36:12 +03:00
parent 89e89d607a
commit d6272bed98

View file

@ -244,24 +244,20 @@ class Auth
$option->connect(
'toggled',
function (
GtkRadioButton $self
) {
function(): void
{
// Detect active option
foreach ($this->_options as $id => $option)
{
// Is new
if (!$id)
{
if ($option->get_active())
{
$this->name->show();
}
// Update sensibility
$this->name->set_sensitive(
$option->get_active()
);
else
{
$this->name->hide();
}
break;
}
}
}