feat: improve UI/UX of font loading

This commit is contained in:
ema
2025-09-08 01:14:01 +08:00
parent cddf767c6c
commit 07debda5e4
3 changed files with 50 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ using QuickLook.Common.Plugin;
using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace QuickLook.Plugin.FontViewer;
@@ -52,7 +53,12 @@ public class Plugin : IViewer
context.ViewerContent = _panel;
context.Title = Path.GetFileName(path);
context.IsBusy = false;
_ = Task.Run(() =>
{
_ = _panel.WaitForFontSent();
context.IsBusy = false;
});
}
public void Cleanup()