mirror of
https://github.com/ModOrganizer2/modorganizer-basic_games.git
synced 2026-07-27 14:07:29 -07:00
Consider plugin inactive if there is no managed game.
This commit is contained in:
@@ -347,6 +347,9 @@ class BasicGame(mobase.IPluginGame):
|
||||
return self._mappings.version.get()
|
||||
|
||||
def isActive(self) -> bool:
|
||||
if not self._organizer.managedGame():
|
||||
return False
|
||||
|
||||
# Note: self is self._organizer.managedGame() does not work:
|
||||
return self.name() == self._organizer.managedGame().name()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user