forked from Support/sp-hydra-veil-gui
15 lines
615 B
Python
15 lines
615 B
Python
from gui.v2.infrastructure.action_registry import register_action
|
|
from core.infrastructure.global_state_coordinator import coordinate_evaluation
|
|
from core.models.Result import Result, ResultError
|
|
|
|
from gui.v2.infrastructure.setup_observers import connection_observer
|
|
|
|
def empty_filler(result: Result) -> Result:
|
|
"""To have a callback, even when one is not required."""
|
|
return result
|
|
|
|
|
|
@register_action(ResultError.ZOMBIE_CONNECTION)
|
|
def evaluate_bad_state() -> Result:
|
|
"""Start core's evaluation of state with a GUI observer."""
|
|
return coordinate_evaluation(connection_observer=connection_observer)
|