asdasd
All checks were successful
Deploy / deploy-staging (push) Successful in 29s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-06-22 01:51:56 +02:00
parent cfcb37ca7e
commit 7d4c3e4378
5 changed files with 63 additions and 5 deletions

View File

@@ -56,6 +56,19 @@ final class App
$apps = AppIconResolver::decorate($enabledApps, $activeSkin);
$windows = (new WindowManager($registry))->defaultWindows();
$activeWidgetIds = array_values(array_map('strval', (array) ($userSettings['widgets']['active_ids'] ?? DesktopState::defaultWidgetIds())));
$trayItems = DesktopState::trayItems();
foreach ($enabledApps as $app) {
if (empty($app['supports_tray']) || (string) ($app['app_id'] ?? '') !== 'fx-rates') {
continue;
}
$trayItems[] = [
'id' => 'app-' . (string) $app['app_id'],
'label' => (string) ($app['icon'] ?? 'FX'),
'app_id' => (string) ($app['app_id'] ?? ''),
'title' => (string) ($app['title'] ?? ''),
];
}
$displayName = (string) ($authUser['name'] ?? $authUser['username'] ?? 'Gast');
$storageScope = $isAuthenticated
? strtolower((string) ($authUser['username'] ?? $authUser['sub'] ?? 'user'))
@@ -94,7 +107,7 @@ final class App
'registry' => $widgetRegistry->all(),
'active_ids' => $activeWidgetIds,
],
'tray' => DesktopState::trayItems(),
'tray' => $trayItems,
'session' => [
'display_name' => $displayName,
'authenticated' => $isAuthenticated,