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( $option->connect(
'toggled', 'toggled',
function ( function(): void
GtkRadioButton $self {
) {
// Detect active option // Detect active option
foreach ($this->_options as $id => $option) foreach ($this->_options as $id => $option)
{ {
// Is new // Is new
if (!$id) if (!$id)
{ {
if ($option->get_active()) // Update sensibility
{ $this->name->set_sensitive(
$this->name->show(); $option->get_active()
} );
else break;
{
$this->name->hide();
}
} }
} }
} }