Explorar o código

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

Jocelyn Boullier %!s(int64=5) %!d(string=hai) anos
pai
achega
a2d4009ed0
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  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")