fix.修智教hub组件

This commit is contained in:
lincube
2026-04-02 15:24:59 +08:00
parent 964cef27ee
commit ff014717fa
6 changed files with 315 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
@@ -375,6 +375,18 @@ public partial class MainWindow
UpdateDesktopPageAwareComponentContext();
}
public void ForceDesktopPageToFirst()
{
if (_currentDesktopSurfaceIndex == 0)
{
return;
}
_currentDesktopSurfaceIndex = 0;
ApplyDesktopSurfaceOffset();
SchedulePersistSettings(delayMs: 120);
}
private void SetDesktopPagesHostSnapAnimationEnabled(bool enabled)
{
if (_desktopPagesHostTransform is null)