93 bool(firmwareFile)) |
93 bool(firmwareFile)) |
94 if self.__isBackupMode: |
94 if self.__isBackupMode: |
95 enable &= bool(self.sizeComboBox.currentText()) |
95 enable &= bool(self.sizeComboBox.currentText()) |
96 else: |
96 else: |
97 enable &= os.path.exists(firmwareFile) |
97 enable &= os.path.exists(firmwareFile) |
98 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable) |
98 self.buttonBox.button( |
|
99 QDialogButtonBox.StandardButton.Ok).setEnabled(enable) |
99 |
100 |
100 @pyqtSlot(str) |
101 @pyqtSlot(str) |
101 def on_espComboBox_currentTextChanged(self, chip): |
102 def on_espComboBox_currentTextChanged(self, chip): |
102 """ |
103 """ |
103 Private slot to handle the selection of a chip type. |
104 Private slot to handle the selection of a chip type. |