mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-04-21 19:24:00 +00:00
OOBE GUI版
This commit is contained in:
12
Gui/Gui.cs
12
Gui/Gui.cs
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user