adasd
This commit is contained in:
@@ -16,29 +16,6 @@ final class WindowManager
|
||||
*/
|
||||
public function defaultWindows(): array
|
||||
{
|
||||
$defaults = ['welcome-center', 'public-dashboard'];
|
||||
$windows = [];
|
||||
|
||||
foreach ($defaults as $index => $appId) {
|
||||
$app = $this->registry->find($appId);
|
||||
|
||||
if ($app === null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$windows[] = [
|
||||
'window_id' => 'window-' . $appId,
|
||||
'app_id' => $appId,
|
||||
'title' => $app['title'],
|
||||
'state' => $index === 0 ? 'focused' : 'open',
|
||||
'x' => 72 + ($index * 48),
|
||||
'y' => 84 + ($index * 36),
|
||||
'width' => $app['default_width'] ?? 640,
|
||||
'height' => $app['default_height'] ?? 420,
|
||||
'content' => $app['summary'] ?? '',
|
||||
];
|
||||
}
|
||||
|
||||
return $windows;
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user