is_enabled#

omni.ui.leak_check.is_enabled() bool#

True if the leak-check helpers should be installed on ui.Window.

Gated only on the setting – deliberately NOT on the OMNI_UI_LEAK_CHECK env var. That env var drives the lightweight, read-only per-test window-leak scan in OmniUiTest; it must not also globally wrap ``Window.destroy`` here, which is more invasive and can perturb unrelated tests.