删掉回放的五个转发、重复的空格快捷键与重复的等待循环。
回放调用点直接走 replay_ctl,场景工具的路径引导收敛到 _paths,panel_snapshot 复用 panel_check 的 _wait_for,report_from 收成模块私有的 _report_from。
This commit is contained in:
@@ -65,7 +65,7 @@ class AnalysisReport:
|
||||
)
|
||||
|
||||
|
||||
def report_from(outcome: AnalysisOutcome | None, *, cancelled: bool) -> AnalysisReport:
|
||||
def _report_from(outcome: AnalysisOutcome | None, *, cancelled: bool) -> AnalysisReport:
|
||||
"""Turn a service outcome into the surface's report."""
|
||||
if outcome is None:
|
||||
return AnalysisReport(
|
||||
@@ -178,7 +178,7 @@ class AnalysisWorker(QObject):
|
||||
with self._lock:
|
||||
self._service = None
|
||||
cancelled = self._cancel.is_set()
|
||||
report = report_from(outcome, cancelled=cancelled)
|
||||
report = _report_from(outcome, cancelled=cancelled)
|
||||
if outcome is None and not cancelled:
|
||||
report = AnalysisReport(
|
||||
outcome=None,
|
||||
|
||||
Reference in New Issue
Block a user