Turn off logger gui update by default

Gui update may cause crash when property editor lose focus
This commit is contained in:
Zheng, Lei 2017-09-21 03:59:02 +08:00
parent 24f86c88a5
commit b737e41496

View File

@ -15,7 +15,7 @@ class FCADLogger:
FreeCAD.Console.PrintLog,
FreeCAD.Console.PrintLog ]
self.laststamp = datetime.now()
for key in ('printTag','updateUI','timing','lineno'):
for key in ('printTag','noUpdateUI','timing','lineno'):
setattr(self,key,kargs.get(key,True))
def _isEnabledFor(self,level):
@ -59,7 +59,7 @@ class FCADLogger:
self.printer[level]('{}{}\n'.format(prefix,msg))
if self.updateUI:
if not self.noUpdateUI:
try:
FreeCADGui.updateGui()
except Exception: