Fix initial tab bar visibility when starting a session with multiple tabs

This commit is contained in:
Kovid Goyal 2017-09-07 21:17:07 +05:30
parent a52f0939df
commit fe7f3233ba
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -308,6 +308,8 @@ class TabManager:
def init(self, startup_session): def init(self, startup_session):
self.tabs = [Tab(self.opts, self.args, self.title_changed, t) for t in startup_session.tabs] self.tabs = [Tab(self.opts, self.args, self.title_changed, t) for t in startup_session.tabs]
self.active_tab_idx = startup_session.active_tab_idx self.active_tab_idx = startup_session.active_tab_idx
if len(self.tabs) > 1:
get_boss().tabbar_visibility_changed()
self.update_tab_bar() self.update_tab_bar()
def update_tab_bar(self): def update_tab_bar(self):