Skip to content

Commit

Permalink
Fix filtering for installed games
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkwouter committed Aug 11, 2023
1 parent 5032dcb commit c6a1e54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
**1.2.5**
- Fix filtering for installed games

**1.2.4**
- Fix packages missing a script

Expand Down
3 changes: 2 additions & 1 deletion minigalaxy/ui/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from typing import List

from minigalaxy.download_manager import DownloadManager
from minigalaxy.entity.state import State
from minigalaxy.logger import logger
from minigalaxy.paths import UI_DIR, CATEGORIES_FILE_PATH
from minigalaxy.api import Api
Expand Down Expand Up @@ -92,7 +93,7 @@ def __filter_library_func(self, child):
return False

if self.show_installed_only:
if tile.current_state in [tile.state.DOWNLOADABLE, tile.state.INSTALLABLE]:
if tile.current_state in [State.DOWNLOADABLE, State.INSTALLABLE]:
return False

if not self.config.show_hidden_games and tile.game.get_info("hide_game"):
Expand Down

0 comments on commit c6a1e54

Please sign in to comment.