diff --git a/src/osdag/gui/ui_OsdagMainPage.py b/src/osdag/gui/ui_OsdagMainPage.py index f9895ad69..45b9a1cdc 100644 --- a/src/osdag/gui/ui_OsdagMainPage.py +++ b/src/osdag/gui/ui_OsdagMainPage.py @@ -15,9 +15,7 @@ class Ui_MainWindow(QMainWindow): def __init__(self): super().__init__() - #change 4 self.plugin_window = None - #end of change 4 def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") @@ -74,11 +72,9 @@ def setupUi(self, MainWindow): self.comboBox_help.addItem("") self.comboBox_help.addItem("") self.comboBox_help.addItem("") - #change 1 self.comboBox_help.addItem("") self.comboBox_help.addItem("") self.comboBox_help.addItem("") - #end of change 1 self.gridLayout.addWidget(self.comboBox_help, 1, 0) layout = QtWidgets.QHBoxLayout() self.lbl = QtWidgets.QLabel(self.centralwidget) @@ -155,12 +151,11 @@ def setupUi(self, MainWindow): self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) - self.retranslateUi(MainWindow) self.comboBox_help.setCurrentIndex(0) self.myStackedWidget.setCurrentIndex(0) - # Change 2 + self.comboBox_help.currentIndexChanged.connect(self.on_comboBox_help_changed) QtCore.QMetaObject.connectSlotsByName(MainWindow) @@ -179,7 +174,7 @@ def on_comboBox_help_changed(self, index): install_dialog = InstallPluginsDialog() install_dialog.exec_() self.comboBox_help.setCurrentIndex(0) - #end of change 2 + def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate @@ -190,9 +185,7 @@ def retranslateUi(self, MainWindow): self.comboBox_help.setItemText(3, _translate("MainWindow", "Ask Us a Question")) self.comboBox_help.setItemText(4, _translate("MainWindow", "Check for Update")) self.comboBox_help.setItemText(5, _translate("MainWindow", "About Osdag")) - #change 3 self.comboBox_help.setItemText(6, _translate("MainWindow", "Plugins")) - #end of change 3 self.comboBox_help.setItemText(7, _translate("MainWindow", "Install Plugins")) from . import osdagMainPageIcons_rc