1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Fix SelectGameDialogWithPreview.

This commit is contained in:
Shlomi Fish 2016-03-14 23:05:37 +02:00
parent c3a8a52543
commit 80268cfac8
3 changed files with 7 additions and 1 deletions

View file

@ -80,6 +80,9 @@ class PysolMenubarTk(PysolMenubarTkCommon):
def _calcSelectGameDialog(self):
return SelectGameDialog
def _calcSelectGameDialogWithPreview(self):
return SelectGameDialogWithPreview
def _calcSoundOptionsDialog(self):
return SoundOptionsDialog

View file

@ -71,6 +71,9 @@ class PysolMenubarTk(PysolMenubarTkCommon):
def _calcSelectGameDialog(self):
return SelectGameDialog
def _calcSelectGameDialogWithPreview(self):
return SelectGameDialogWithPreview
def _calcSoundOptionsDialog(self):
return SoundOptionsDialog

View file

@ -808,7 +808,7 @@ class PysolMenubarTkCommon:
bookmark = self.game.gsaveinfo.bookmarks[-2][0]
del self.game.gsaveinfo.bookmarks[-2]
after_idle(self.top, self.__restoreCursor)
d = SelectGameDialogWithPreview(self.top, title=_("Select game"),
d = self._calcSelectGameDialogWithPreview()(self.top, title=_("Select game"),
app=self.app, gameid=self.game.id,
bookmark=bookmark)
return self._mSelectGameDialog(d)