mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-12 02:09:05 +00:00
feat: improve UI/UX of font loading
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user