mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-22 00:33:44 +08:00
lead indicator mindblender
This commit is contained in:
@@ -2557,15 +2557,11 @@ def _get_lead_indicator_enabled(defaults_lookup=None):
|
||||
if defaults_lookup is None:
|
||||
defaults_lookup = _get_default_param_values()
|
||||
|
||||
lead_raw = _safe_params_get_live_raw("LeadIndicator")
|
||||
if _is_blank_param_raw(lead_raw):
|
||||
lead_raw = defaults_lookup.get("LeadIndicator", "0")
|
||||
|
||||
hide_raw = _safe_params_get_live_raw("HideLeadMarker")
|
||||
if _is_blank_param_raw(hide_raw):
|
||||
hide_raw = defaults_lookup.get("HideLeadMarker", "0")
|
||||
|
||||
return _coerce_param_value(lead_raw, bool) and not _coerce_param_value(hide_raw, bool)
|
||||
return not _coerce_param_value(hide_raw, bool)
|
||||
|
||||
|
||||
def _get_custom_accel_profile_initialized():
|
||||
|
||||
Reference in New Issue
Block a user