From d6272bed98f3a5bb2d3eef752d1f69866370f1f4 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 3 Aug 2024 10:36:12 +0300 Subject: [PATCH] deactivate sensibility instead of hide identity name entry --- src/Entity/Browser/Container/Page/Auth.php | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/Entity/Browser/Container/Page/Auth.php b/src/Entity/Browser/Container/Page/Auth.php index 58311d7a..a19d9113 100644 --- a/src/Entity/Browser/Container/Page/Auth.php +++ b/src/Entity/Browser/Container/Page/Auth.php @@ -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; } } }