Skip to content

Commit 30b08cc

Browse files
committed
qtplasmac: prepare docs url for when master releases
This is an attempt to not have to change this when current master becomes 2.10.
1 parent 9fdd01b commit 30b08cc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

share/qtvcp/screens/qtplasmac/qtplasmac_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
VERSION = '008.062'
22
LCNCVER = '2.10'
3-
DOCSVER = 'devel'
43

54
'''
65
qtplasmac_handler.py
@@ -137,6 +136,7 @@ def __init__(self, halcomp, widgets, paths):
137136
break
138137
self.machineName = self.iniFile.find('EMC', 'MACHINE')
139138
self.machineTitle = f'{self.machineName} - QtPlasmaC v{LCNCVER}-{VERSION}, powered by QtVCP and LinuxCNC'
139+
self.docsVer = 'devel' if 'pre' in linuxcnc.version else LCNCVER
140140
self.prefsFile = os.path.join(self.PATHS.CONFIGPATH, self.machineName + '.prefs')
141141
self.materialFile = os.path.join(self.PATHS.CONFIGPATH, self.machineName + '_material.cfg')
142142
self.unitsPerMm = 1
@@ -162,7 +162,7 @@ def __init__(self, halcomp, widgets, paths):
162162
if os.path.basename(self.PATHS.XML) == 'qtplasmac_9x16.ui':
163163
self.landscape = False
164164
self.upFile = os.path.join(self.PATHS.CONFIGPATH, 'user_periodic.py')
165-
self.umUrl = QUrl(f'https://linuxcnc.org/docs/{DOCSVER}/html/plasma/qtplasmac.html')
165+
self.umUrl = QUrl(f'https://linuxcnc.org/docs/{self.docsVer}/html/plasma/qtplasmac.html')
166166
KEYBIND.add_call('Key_F12', 'on_keycall_F12')
167167
KEYBIND.add_call('Key_F9', 'on_keycall_F9')
168168
KEYBIND.add_call('Key_Plus', 'on_keycall_PLUS')

0 commit comments

Comments
 (0)