New built-in plugin FontViewer

This commit is contained in:
ema
2024-12-30 03:05:06 +08:00
parent 9f74be0e1c
commit ffecab95be
11 changed files with 671 additions and 3 deletions

View File

@@ -66,7 +66,8 @@ public class Plugin : IViewer
context.Title = Path.GetFileName(path);
var htmlPath = GenerateMarkdownHtml(path);
_panel.NavigateToFile(htmlPath, Path.GetDirectoryName(path));
_panel.FallbackPath = Path.GetDirectoryName(path);
_panel.NavigateToFile(htmlPath);
_panel.Dispatcher.Invoke(() => { context.IsBusy = false; }, DispatcherPriority.Loaded);
}