File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/emc/usr_intf/gmoccapy Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -406,9 +406,9 @@ def __init__(self, argv):
406406 self .widgets ["rbt_view_{0}" .format (view )].set_active (True )
407407 self .widgets .gremlin .set_property ("view" , view )
408408
409- GSTAT = hal_glib .GStat ()
410- GSTAT .connect ("graphics-gcode-properties" , self .on_gcode_properties )
411- GSTAT .connect ("file-loaded" , self .on_hal_status_file_loaded )
409+ self . GSTAT = hal_glib .GStat ()
410+ self . GSTAT .connect ("graphics-gcode-properties" , self .on_gcode_properties )
411+ self . GSTAT .connect ("file-loaded" , self .on_hal_status_file_loaded )
412412
413413 # get if run from line should be used
414414 self .run_from_line = self .prefs .getpref ("run_from_line" , "no_run" , str )
@@ -2630,7 +2630,7 @@ def _periodic(self):
26302630
26312631 # every 1 second this gets called
26322632 def _periodic_1s (self ):
2633- if hal . get_value ( 'halui.program.is-running' ) :
2633+ if self . GSTAT . is_auto_running :
26342634 self .elapsed_time_run += 1
26352635 self ._update_progressbar_text ()
26362636 return True
You can’t perform that action at this time.
0 commit comments