فهرست منبع

Fix title not returning to URL title

Ruben 4 ماه پیش
والد
کامیت
d9ef7744c9
1فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. 4 3
      src/PicView.Avalonia/UI/TitleManager.cs

+ 4 - 3
src/PicView.Avalonia/UI/TitleManager.cs

@@ -22,10 +22,11 @@ public static class TitleManager
         if (!NavigationManager.CanNavigate(vm))
         {
             string title;
-            var s = vm.PicViewer.Title;
-            if (!string.IsNullOrWhiteSpace(s.GetURL()))
+            var s = vm.PicViewer.WindowTitle;
+            var url = s.GetURL();
+            if (!string.IsNullOrWhiteSpace(url))
             {
-                title = vm.PicViewer.Title.GetURL();
+                title = url;
             }
             else if (s.Contains(TranslationManager.Translation.Base64Image))
             {