Skip to content

Commit

Permalink
Fix old references to _view in plugin api
Browse files Browse the repository at this point in the history
  • Loading branch information
diegogangl committed Jan 9, 2024
1 parent 4938864 commit 6eba634
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GTG/core/plugins/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def get_browser(self):
"""
Returns a Browser
"""
return self.__view_manager.browser
return self.browser

def get_menu(self):
"""
Expand All @@ -123,7 +123,7 @@ def get_selected(self):
if self.is_editor():
return self.__task_id
else:
return self.__view_manager.browser.get_selected_tasks()
return self.browser.get_selected_tasks()

def set_active_selection_changed_callback(self, func):
if func not in self.selection_changed_callback_listeners:
Expand Down

0 comments on commit 6eba634

Please sign in to comment.