Skip to content

Commit 80bba07

Browse files
committed
qtplasmac: fix title and icon
1 parent 4032845 commit 80bba07

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

share/qtvcp/screens/qtplasmac/qtplasmac_handler.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,6 @@ def __init__(self, halcomp, widgets, paths):
312312
self.DEBUG = 27
313313

314314
def initialized__(self):
315-
self.w.setWindowTitle('{} - QtPlasmaC v{}, powered by QtVCP on LinuxCNC v{}'.format(self.machineName, VERSION, linuxcnc.version.split(':')[0]))
316-
self.w.setWindowIcon(QIcon(os.path.join(self.IMAGES, 'Chips_Plasma.png')))
317315
# ensure we get all startup errors
318316
STATUS.connect('error', self.error_update)
319317
STATUS.connect('graphics-gcode-error', lambda o, e:self.error_update(o, linuxcnc.OPERATOR_ERROR, e))
@@ -398,6 +396,10 @@ def initialized__(self):
398396
self.firstRun = False
399397
self.startupTimer.start(250)
400398

399+
def before_loop__(self):
400+
self.w.setWindowTitle('{} - QtPlasmaC v{}, powered by QtVCP on LinuxCNC v{}'.format(self.machineName, VERSION, linuxcnc.version.split(':')[0]))
401+
self.w.setWindowIcon(QIcon(os.path.join(self.IMAGES, 'Chips_Plasma.png')))
402+
401403

402404
#########################################################################################################################
403405
# CLASS PATCHING SECTION #

0 commit comments

Comments
 (0)