Merge pull request #52082 from nextcloud/default-navigation-reuse

This commit is contained in:
Kate 2025-04-10 08:27:03 +02:00 committed by GitHub
commit e94fe91cd1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}
}
}