diff --git a/statusbarextended/__init__.py b/statusbarextended/__init__.py index 0cb7af1..9baa81e 100644 --- a/statusbarextended/__init__.py +++ b/statusbarextended/__init__.py @@ -18,7 +18,7 @@ class StatusBarExtended(DirectoryPaneListener): def refresh(self): - pane = self.pane.id + pane = self.pane.window.get_panes().index(self.pane) statusbar_pane = "" pane_show_hidden_files = load_json('Panes.json')[pane]['show_hidden_files'] @@ -41,7 +41,7 @@ def refresh(self): continue bc = ByteConverter(dir_filesize) - if(pane == self.pane.window.get_panes()[0].id): + if(self.pane == self.pane.window.get_panes()[0]): statusbar_pane += "Pane: Left " else: statusbar_pane += "Pane: Right "