fix: address defects found in frozen native acceptance
This commit is contained in:
1 parent
b86e4e315a
commit
42d0cebc54
15 files changed
+808
-50
No files matched your search
@@ -422,6 +422,12 @@ class MainWindow(QWidget):
|
||||
waiting_library = self._queued_release_library()
|
||||
self.queue_release_button.setVisible(waiting_library is not None)
|
||||
self.queue_release_button.setEnabled(waiting_library is not None and not self._closing)
|
||||
for task in self.icdb_tasks:
|
||||
action = getattr(task, 'release_action', None)
|
||||
if action is not None and isValid(action):
|
||||
queued_target = bool(waiting_library and _library_path_keys(waiting_library, task.path_lease)
|
||||
& _library_path_keys(task.requests[0].lmc_file, task.path_lease))
|
||||
action.setEnabled(not self._closing and (not self.busy or queued_target))
|
||||
reasons = []
|
||||
for operation, widget in (('add', self.add_button), ('update', self.update_button), ('remove', self.remove_button)):
|
||||
reason = self._management_block_reason(operation)
|
||||
@@ -988,8 +994,9 @@ class MainWindow(QWidget):
|
||||
& _library_path_keys(self.mentor_lmc_path or self.loaded_path, self.library_lease)):
|
||||
self.status_label.setText(f'请切回 {task.requests[0].lmc_file} 后释放该检查的残留。')
|
||||
return
|
||||
self.check_library_release()
|
||||
summary.addButton('查看残留并释放…', QMessageBox.ActionRole).clicked.connect(release_task)
|
||||
self.check_library_release(queued=self.busy)
|
||||
task.release_action = summary.addButton('查看残留并释放…', QMessageBox.ActionRole)
|
||||
task.release_action.clicked.connect(release_task)
|
||||
if offers:
|
||||
action = summary.addButton('选择副本恢复…', QMessageBox.ActionRole)
|
||||
task.recovery_action = action
|
||||
|
||||
Reference in new issue
Block a user