Fix long path handling issue in HtmlViewer #1643

This commit is contained in:
ema
2025-10-07 23:54:15 +08:00
parent 0d0c71407c
commit 78843d8098
3 changed files with 106 additions and 35 deletions

View File

@@ -58,6 +58,7 @@ public class Plugin : IViewer
if (path.ToLower().EndsWith(".url"))
path = Helper.GetUrlPath(path);
_panel.FallbackPath = Path.GetDirectoryName(path); // Reserve opportunities for requesting exceeds MAX_PATH (260) limitation
_panel.NavigateToFile(path);
_panel.Dispatcher.Invoke(() => { context.IsBusy = false; }, DispatcherPriority.Loaded);
}