lpcmanager

Fixed loading screen on build.

2017-07-10, dgaberscek
86063716d41d
Parents 00e4663b5eaa
Children 9cbb3d5d65b9
Fixed loading screen on build.
--- a/LPCManager.py Thu Jul 06 14:47:47 2017 +0200
+++ b/LPCManager.py Mon Jul 10 13:30:36 2017 +0200
@@ -120,7 +120,7 @@
_lpcmanager_path = os.path.split(__file__)[0]
sys.path.append(os.path.join(_lpcmanager_path, "SmartehWidgets"))
-import SmartehScreenSplash as splash
+import SmartehWidgets.SmartehScreenSplash as splash
import features
from POULibrary import POULibrary
@@ -1519,10 +1519,6 @@
pub = signal("build")
def __Build(args, save, frame=None):
- if frame:
- thread = Thread(target=frame.Show)
- thread.setDaemon(True)
- thread.start()
self.building = True
build_succeeded = ProjectController._Build(args)
if build_succeeded:
@@ -1547,6 +1543,11 @@
self._Clean(building=True)
if self.AppFrame:
frame = splash.SmartehScreenSplash(self.AppFrame, bitmap=GetPath(splash.SPLASH_FN))
+ thread = Thread(target=frame.ShowModal)
+ thread.setDaemon(True)
+ thread.start()
+ else:
+ frame = None
build_thread = Thread(name="OnBuildThread", target=__Build, args=(self,save, frame))
build_thread.daemon = True
build_thread.start()
@@ -2849,7 +2850,7 @@
def CmdThreadProc(CTR, Log):
global lpcberemiz_cmd
for function, (arg_types, opt) in {"Exit": ([], 0),
- "Show": ([], 0),
+ "Show": ([bool], 1),
"Refresh": ([], 0),
"Close": ([], 0),
"Compile": ([], 0),