mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
auto-select active identity
This commit is contained in:
parent
0dbaaa60e1
commit
c694efe786
1 changed files with 9 additions and 0 deletions
|
|
@ -134,6 +134,15 @@ class Auth
|
|||
// Build options list
|
||||
foreach ($this->_options as $id => $option)
|
||||
{
|
||||
// Detect active identity
|
||||
$option->gtk->set_active(
|
||||
boolval(
|
||||
$this->page->container->browser->database->auth->match(
|
||||
$this->page->navbar->request->getValue(), 1 // one
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
// Append option
|
||||
$content->add(
|
||||
$option->gtk
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue