Indicate if set_active_tab() worked or not
This commit is contained in:
parent
40b9049deb
commit
eb006a6688
2 changed files with 4 additions and 2 deletions
|
|
@ -846,7 +846,8 @@ def goto_tab(self, tab_num):
|
|||
def set_active_tab(self, tab):
|
||||
tm = self.active_tab_manager
|
||||
if tm is not None:
|
||||
tm.set_active_tab(tab)
|
||||
return tm.set_active_tab(tab)
|
||||
return False
|
||||
|
||||
def next_tab(self):
|
||||
tm = self.active_tab_manager
|
||||
|
|
|
|||
|
|
@ -478,8 +478,9 @@ def set_active_tab(self, tab):
|
|||
try:
|
||||
idx = self.tabs.index(tab)
|
||||
except Exception:
|
||||
return
|
||||
return False
|
||||
self.set_active_tab_idx(idx)
|
||||
return True
|
||||
|
||||
def next_tab(self, delta=1):
|
||||
if len(self.tabs) > 1:
|
||||
|
|
|
|||
Loading…
Reference in a new issue