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

Fix for Pillowless crash.

This commit is contained in:
Joe R 2021-08-14 17:43:52 -04:00 committed by Shlomi Fish
parent b58ad60fc7
commit e338a1bd95

View file

@ -27,7 +27,7 @@ import os
from pysollib.gamedb import GI
from pysollib.help import help_about, help_html
from pysollib.mfxutil import Struct, openURL
from pysollib.mfxutil import print_err
from pysollib.mfxutil import print_err, USE_PIL
from pysollib.mygettext import _
from pysollib.pysolrandom import construct_random
from pysollib.pysoltk import AllGames_StatsDialog, SingleGame_StatsDialog
@ -199,7 +199,9 @@ class PysolMenubar(PysolMenubarTk):
self.setMenuState(ms.autodrop, "options.automaticplay.autodrop")
self.setMenuState(ms.autodeal, "options.automaticplay.autodeal")
self.setMenuState(ms.quickplay, "options.automaticplay.quickplay")
self.setMenuState(ms.autoscale, "options.cardsize.preserveaspectratio")
if USE_PIL:
self.setMenuState(ms.autoscale,
"options.cardsize.preserveaspectratio")
# Help menu
self.setMenuState(ms.rules, "help.rulesforthisgame")
# Toolbar