修复设置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

@@ -253,7 +253,11 @@ namespace CMLeonOS.Gui.Apps
{
base.Start();
window = new AppWindow(this, 256, 256, 448, 272);
window.Closing = TryStop;
window.Closing = () =>
{
SettingsManager.FlushSettings();
TryStop();
};
window.Icon = AppManager.GetAppMetadata("Settings").Icon;
wm.AddWindow(window);