Quellcode durchsuchen

fix(sidebar): bug when a tab title could be stuck in loading mode

Jocelyn Boullier vor 5 Jahren
Ursprung
Commit
a2d4009ed0
1 geänderte Dateien mit 1 neuen und 4 gelöschten Zeilen
  1. 1 4
      src/Sidebar.purs

+ 1 - 4
src/Sidebar.purs

@@ -89,10 +89,7 @@ updateTabInfo tid cinfo' tab' = do
   let
     newTitle = case cinfo.status of
       Just "loading" -> Just "Loading ..."
-      -- only change the title if we did receive a new title
-      -- prevent some flickering when the status `complete` but the tab title
-      -- info is empty
-      _ -> cinfo.title 
+      _ -> Just tab.title
   maybe (pure unit) (\t -> setText t tabTitleDiv) newTitle
 
   tabFaviconDiv <- select ("#" <> (show tid) <> " > .tab-favicon")