Fixed initial loaded start tab, cleanup
This commit is contained in:
parent
51ac26048c
commit
09a85abb79
@ -36,13 +36,13 @@ class WindowMixin(TabMixin):
|
||||
|
||||
try:
|
||||
if not self.is_pane4_hidden:
|
||||
icon_grid = self.window4.get_children()[1].get_children()[0]
|
||||
icon_grid = self.window4.get_children()[-1].get_children()[0]
|
||||
elif not self.is_pane3_hidden:
|
||||
icon_grid = self.window3.get_children()[1].get_children()[0]
|
||||
icon_grid = self.window3.get_children()[-1].get_children()[0]
|
||||
elif not self.is_pane2_hidden:
|
||||
icon_grid = self.window2.get_children()[1].get_children()[0]
|
||||
icon_grid = self.window2.get_children()[-1].get_children()[0]
|
||||
elif not self.is_pane1_hidden:
|
||||
icon_grid = self.window1.get_children()[1].get_children()[0]
|
||||
icon_grid = self.window1.get_children()[-1].get_children()[0]
|
||||
|
||||
icon_grid.event(Gdk.Event().new(type=Gdk.EventType.BUTTON_RELEASE))
|
||||
icon_grid.event(Gdk.Event().new(type=Gdk.EventType.BUTTON_RELEASE))
|
||||
|
@ -30,16 +30,16 @@ class Window:
|
||||
def pop_tab(self):
|
||||
self._tabs.pop()
|
||||
|
||||
def delete_tab_by_id(self, vid):
|
||||
def delete_tab_by_id(self, tid):
|
||||
for tab in self._tabs:
|
||||
if tab.get_id() == vid:
|
||||
if tab.get_id() == tid:
|
||||
self._tabs.remove(tab)
|
||||
break
|
||||
|
||||
|
||||
def get_tab_by_id(self, vid):
|
||||
def get_tab_by_id(self, tid):
|
||||
for tab in self._tabs:
|
||||
if tab.get_id() == vid:
|
||||
if tab.get_id() == tid:
|
||||
return tab
|
||||
|
||||
def get_tab_by_index(self, index):
|
||||
|
Loading…
Reference in New Issue
Block a user