mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 15:30:27 +00:00
修复设置bug
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user