Skip to content

Commit 286cc13

Browse files
committed
qtdragon/lathe -fix utilities tab code
Not sure how I got that wrong
1 parent 25a0121 commit 286cc13

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

share/qtvcp/screens/qtdragon/qtdragon_handler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1886,7 +1886,8 @@ def adjust_stacked_widgets(self,requestedIndex,mode_change=False):
18861886
# show ngcgui info tab if utilities tab is selected
18871887
# but only if the utilities tab has ngcgui selected
18881888
if main_index == TAB_UTILITIES:
1889-
if self.w.tabWidget_utilities.currentIndex() == 2:
1889+
num = self.w.tabWidget_utilities.currentIndex()
1890+
if 'ngc' in self.w.tabWidget_utilities.tabText(num).lower():
18901891
self.w.stackedWidget.setCurrentIndex(PAGE_NGCGUI)
18911892
else:
18921893
self.w.stackedWidget.setCurrentIndex(PAGE_GCODE)

share/qtvcp/screens/qtdragon_lathe/qtdragon_lathe_handler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,6 +1887,7 @@ def adjust_stacked_widgets(self,requestedIndex,mode_change=False):
18871887
# show ngcgui info tab if utilities tab is selected
18881888
# but only if the utilities tab has ngcgui selected
18891889
if main_index == TAB_UTILITIES:
1890+
num = self.w.tabWidget_utilities.currentIndex()
18901891
if 'ngc' in self.w.tabWidget_utilities.tabText(num).lower():
18911892
self.w.stackedWidget.setCurrentIndex(PAGE_NGCGUI)
18921893
else:

0 commit comments

Comments
 (0)