GTK: remove tab label side-effect from refreshView'
This would cause bugs when newtab on middle-click is implemented, since creating a new tab creates also a new view, but doesn't change the current tab to that view. refreshView' would then update that view with the information from the wrong tab.
This commit is contained in:
@@ -345,12 +345,6 @@ refreshView' mygui myview item@Dir{} = do
|
||||
|
||||
constructView mygui myview
|
||||
|
||||
-- set notebook tab label
|
||||
page <- notebookGetCurrentPage (notebook mygui)
|
||||
child <- fromJust <$> notebookGetNthPage (notebook mygui) page
|
||||
notebookSetTabLabelText (notebook mygui) child
|
||||
(maybe (P.fromAbs $ path item) P.fromRel $ P.basename . path $ item)
|
||||
|
||||
-- reselect selected items
|
||||
-- TODO: not implemented for icon view yet
|
||||
case view' of
|
||||
|
||||
Reference in New Issue
Block a user