Add thread for opening fits on startup, which allows us of wait dialog

Wait dialog doesn't actually move as the GUI thread is locked when opening the fits, but at least it shows that -something- is happening.
This commit is contained in:
blitzmann
2014-05-24 22:20:26 -04:00
parent 9a2408741e
commit 2d82eb7c92
2 changed files with 34 additions and 17 deletions

View File

@@ -49,13 +49,13 @@ class FitSpawner(gui.multiSwitch.TabSpawner):
for index, page in enumerate(self.multiSwitch.pages):
try:
if page.activeFitID == event.fitID:
count +=1
count += 1
self.multiSwitch.SetSelection(index)
wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=event.fitID))
break
except:
pass
if count <0:
if count < 0:
mstate = getattr(event, "mstate", wx.GetMouseState())
if mstate.CmdDown() or mstate.MiddleDown():