fixed UI
This commit is contained in:
@@ -363,7 +363,7 @@ class AppWindowPipelineMixin:
|
||||
if record_result_history(self._result_history, collection):
|
||||
latest = collection
|
||||
if (
|
||||
self._processing_mode.currentText() == "gpr"
|
||||
self._is_gpr_processing_mode(self._processing_mode.currentText())
|
||||
and collection_has_gpr_payloads(collection)
|
||||
):
|
||||
self._publish_locator_snapshot_from_collection(collection)
|
||||
@@ -478,11 +478,13 @@ class AppWindowPipelineMixin:
|
||||
speed_m_s = self._locator_service.drain_speed_updates()
|
||||
if speed_m_s is None:
|
||||
return
|
||||
if self._processing_mode.currentText() != "legacy_gpr":
|
||||
return
|
||||
|
||||
previous_speed_m_s = float(self._gpr_speed_m_s.value())
|
||||
with QSignalBlocker(self._gpr_speed_m_s):
|
||||
self._gpr_speed_m_s.setValue(float(speed_m_s))
|
||||
current_speed_m_s = float(self._gpr_speed_m_s.value())
|
||||
previous_speed_m_s = float(self._legacy_gpr_speed_m_s.value())
|
||||
with QSignalBlocker(self._legacy_gpr_speed_m_s):
|
||||
self._legacy_gpr_speed_m_s.setValue(float(speed_m_s))
|
||||
current_speed_m_s = float(self._legacy_gpr_speed_m_s.value())
|
||||
if current_speed_m_s == previous_speed_m_s:
|
||||
return
|
||||
|
||||
@@ -494,7 +496,7 @@ class AppWindowPipelineMixin:
|
||||
return
|
||||
self._locator_service.publish_collection(
|
||||
collection,
|
||||
float(self._gpr_min_visible_score.value()),
|
||||
self._gpr_locator_threshold(),
|
||||
visible_bounds=self._gpr_visible_object_bounds(),
|
||||
)
|
||||
|
||||
@@ -502,7 +504,7 @@ class AppWindowPipelineMixin:
|
||||
"""Publish current locator-visible snapshot from latest cached GPR result."""
|
||||
if self._locator_service is None:
|
||||
return
|
||||
if self._processing_mode.currentText() != "gpr":
|
||||
if not self._is_gpr_processing_mode(self._processing_mode.currentText()):
|
||||
self._locator_service.publish_empty()
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user