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(
|
$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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue