修复设置bug

This commit is contained in:
2026-03-03 21:25:01 +08:00
parent 29a68b4ca9
commit 6c514df84e
8 changed files with 73 additions and 16 deletions

View File

@@ -3,6 +3,7 @@ using Cosmos.System.Graphics;
using CMLeonOS;
using CMLeonOS.Gui.UILib;
using CMLeonOS.UILib.Animations;
using CMLeonOS.Settings;
using System;
using System.Drawing;
@@ -55,13 +56,8 @@ namespace CMLeonOS.Gui.ShellComponents
internal void UpdateTime()
{
if (settingsService == null)
{
settingsService = ProcessManager.GetProcess<SettingsService>();
}
string timeText;
if (settingsService.TwelveHourClock)
if (SettingsManager.GUI_TwelveHourClock)
{
timeText = DateTime.Now.ToString("ddd h:mm tt");
}
@@ -120,6 +116,8 @@ namespace CMLeonOS.Gui.ShellComponents
start.OnClick = StartClicked;
wm.AddWindow(start);
SetLeftHandStartButton(SettingsManager.GUI_LeftHandStartButton);
UpdateTime();
MovementAnimation animation = new MovementAnimation(window)