This commit is contained in:
njdaoyehu 2024-11-27 16:40:30 +08:00
parent 22ffea577f
commit 0f3eb3aa7b

View File

@ -76,17 +76,6 @@ class TaskRunDialog(QDialog):
self.stop_check_button.setEnabled(True)
self.stop_task_button.setEnabled(False)
elif msg.record.code == 1012:
index = 0
for item in self.embed_widgets:
if item.objectName() == 'STD': continue
if self.check_widget.geometry().contains(item.rect):
item.setIndex(str(self.checkIndex))
if index % 2 == 0:
item.setChecked()
else:
item.setError()
index += 1
QMessageBox.warning(self, '成功信息', "检测结束")
self.set_button_default()
AppContext.get_edge_context().get_component('image-framework').start_location()
@ -296,6 +285,17 @@ class TaskRunDialog(QDialog):
self.set_button_default()
index = 0
for item in self.embed_widgets:
if item.objectName() == 'STD': continue
if self.check_widget.geometry().contains(item.rect):
item.setIndex(str(self.checkIndex))
if index % 2 == 0:
item.setChecked()
else:
item.setError()
index += 1
# 校准
def start_adjust(self):
self.start_adjust_button.setEnabled(False)