BUGFIX: PIL is tested at the start of the program.
Previously, one would get one void verification result before Scyther detected PIL was not working. Now nothing is wasted.
This commit is contained in:
@@ -33,6 +33,7 @@ import Scytherthread
|
||||
import Icon
|
||||
import About
|
||||
import Editor
|
||||
import Preference
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
@@ -44,6 +45,9 @@ ID_CHECK = 103
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
def MainInitOnce():
|
||||
result = Preference.usePIL() # Makes sure PIL is tested.
|
||||
|
||||
class MainWindow(wx.Frame):
|
||||
|
||||
def __init__(self, opts, args):
|
||||
@@ -54,6 +58,8 @@ class MainWindow(wx.Frame):
|
||||
|
||||
self.dirname = os.path.abspath('.')
|
||||
|
||||
MainInitOnce()
|
||||
|
||||
self.filename = 'noname.spdl'
|
||||
self.load = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user