mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
deactivate sensibility instead of hide identity name entry
This commit is contained in:
parent
89e89d607a
commit
d6272bed98
1 changed files with 7 additions and 11 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue