From 09a85abb79a682edcfae15c9fac9ed1c5df5c2e4 Mon Sep 17 00:00:00 2001 From: itdominator <1itdominator@gmail.com> Date: Sun, 13 Mar 2022 18:21:06 -0500 Subject: [PATCH] Fixed initial loaded start tab, cleanup --- .../SolarFM/solarfm/context/mixins/ui/window_mixin.py | 8 ++++---- .../SolarFM/solarfm/shellfm/windows/window.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/versions/solarfm-0.0.1/SolarFM/solarfm/context/mixins/ui/window_mixin.py b/src/versions/solarfm-0.0.1/SolarFM/solarfm/context/mixins/ui/window_mixin.py index 1ff7379..b94bdca 100644 --- a/src/versions/solarfm-0.0.1/SolarFM/solarfm/context/mixins/ui/window_mixin.py +++ b/src/versions/solarfm-0.0.1/SolarFM/solarfm/context/mixins/ui/window_mixin.py @@ -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)) diff --git a/src/versions/solarfm-0.0.1/SolarFM/solarfm/shellfm/windows/window.py b/src/versions/solarfm-0.0.1/SolarFM/solarfm/shellfm/windows/window.py index 9a09233..ec61cd6 100644 --- a/src/versions/solarfm-0.0.1/SolarFM/solarfm/shellfm/windows/window.py +++ b/src/versions/solarfm-0.0.1/SolarFM/solarfm/shellfm/windows/window.py @@ -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):