|
|
|
@ -46,6 +46,7 @@ class MainWindowController: |
|
|
|
if show_only_home_storable: |
|
|
|
# TODO: update the call to correctly filter the data, or better yet update the data at the source to include this info. |
|
|
|
home_storable = True #event_system.call_sync('get_home_storable', pfic) |
|
|
|
home_storable = db.get_pokemon_details(pfic, ["storable_in_home"])["storable_in_home"] |
|
|
|
|
|
|
|
# Check to see if the pokemon has encounters |
|
|
|
has_encounters = True |
|
|
|
@ -74,6 +75,7 @@ class MainWindowController: |
|
|
|
context_menu.exec(self.pokemon_list.viewport().mapToGlobal(position)) |
|
|
|
|
|
|
|
def on_pokemon_selected(self, item): |
|
|
|
if item: |
|
|
|
pfic = item.data(Qt.ItemDataRole.UserRole) |
|
|
|
self.refresh_pokemon_details_panel(pfic) |
|
|
|
|
|
|
|
@ -183,6 +185,5 @@ class MainWindowController: |
|
|
|
self.current_pfic = pfic |
|
|
|
|
|
|
|
def load_evolution_chain(self, pfic): |
|
|
|
#chain = db.get_evolution_paths(pfic) |
|
|
|
chain = db.get_full_evolution_paths(pfic) |
|
|
|
self.view.update_evolution_tree(chain, pfic) |
|
|
|
|