OOBE GUI版

This commit is contained in:
2026-04-04 18:32:21 +08:00
parent 1341f10ed9
commit 97f35bccb3
6 changed files with 344 additions and 12 deletions

View File

@@ -212,8 +212,16 @@ namespace CMLeonOS.Gui
Logger.Logger.Instance.Info("Gui", "Memory management service started");
Console.WriteLine("Starting lock screen...");
ProcessManager.AddProcess(windowManager, new ShellComponents.Lock()).Start();
if (!Kernel.userSystem.HasUsers)
{
Console.WriteLine("Starting OOBE...");
ProcessManager.AddProcess(windowManager, new ShellComponents.Oobe()).Start();
}
else
{
Console.WriteLine("Starting lock screen...");
ProcessManager.AddProcess(windowManager, new ShellComponents.Lock()).Start();
}
guiRunning = true;