mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
Merge pull request #52082 from nextcloud/default-navigation-reuse
This commit is contained in:
commit
e94fe91cd1
1 changed files with 2 additions and 1 deletions
|
|
@ -110,9 +110,10 @@ class NavigationManager implements INavigationManager {
|
|||
}
|
||||
|
||||
private function updateDefaultEntries() {
|
||||
$defaultEntryId = $this->getDefaultEntryIdForUser($this->userSession->getUser(), false);
|
||||
foreach ($this->entries as $id => $entry) {
|
||||
if ($entry['type'] === 'link') {
|
||||
$this->entries[$id]['default'] = $id === $this->getDefaultEntryIdForUser($this->userSession->getUser(), false);
|
||||
$this->entries[$id]['default'] = $id === $defaultEntryId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue