尝试修复alias+增加SkipToGui设置+启用UEFI

This commit is contained in:
2026-03-15 15:49:07 +08:00
parent d076d53025
commit ffc4db82e7
12 changed files with 59 additions and 9 deletions

View File

@@ -89,6 +89,7 @@ namespace CMLeonOS.Gui.Apps
private readonly (string Name, string Path)[] shortcuts = new (string, string)[]
{
("CMLeonOS (0:)", @"0:\"),
("ISO (1:)", @"1:\"),
("My Home", @$"0:\user\{UserSystem.CurrentLoggedInUser.Username}"),
("Users", @"0:\user"),
};
@@ -117,6 +118,8 @@ namespace CMLeonOS.Gui.Apps
{
case @"0:\":
return Icons.Icon_Drive;
case @"1:\":
return Icons.Icon_Drive;
default:
return Icons.Icon_Directory;
}

View File

@@ -87,6 +87,11 @@ namespace CMLeonOS.Gui.Apps
SettingsManager.GUI_ShowFps = @checked;
}
private void SkipToGuiChanged(bool @checked)
{
SettingsManager.SkipToGui = @checked;
}
private void MouseSensitivityChanged(float value)
{
SettingsManager.GUI_MouseSensitivity = value;
@@ -115,6 +120,12 @@ namespace CMLeonOS.Gui.Apps
showFps.CheckBoxChanged = ShowFpsChanged;
wm.AddWindow(showFps);
Switch skipToGui = new Switch(appearance, 12, 96, 244, 16);
skipToGui.Text = "Skip to GUI on boot";
skipToGui.Checked = SettingsManager.SkipToGui;
skipToGui.CheckBoxChanged = SkipToGuiChanged;
wm.AddWindow(skipToGui);
wm.Update(window);
}