Defer game load to after UI initialization.

This removes both the double load that happens on startup and also
makes it possible to get the UI to create a new game if the existing
default.liberation is not compatible.
This commit is contained in:
Dan Albert
2020-11-07 12:35:23 -08:00
parent 3fd5e1bae7
commit 4cf406aefa
4 changed files with 46 additions and 21 deletions

View File

@@ -121,8 +121,8 @@ class QLiberationMap(QGraphicsView):
def setGame(self, game: Optional[Game]):
self.game = game
logging.debug("Reloading Map Canvas")
if self.game is not None:
logging.debug("Reloading Map Canvas")
self.reload_scene()
"""