zapret-kvn/xray_fluent/ui/tour/__init__.py
loop-uh 03e7d9f667
Some checks failed
Windows project source guards / test (push) Has been cancelled
WARP hop: client-side noise, a WARP offer in the failure hint, a tour step
The handshake packet of WireGuard is what a censor classifies, so the hop now
sends the initiator-only Amnezia noise first (junk datagrams and a DNS-shaped I1
from the app's own masking builder); real Cloudflare WARP still answered the
handshake with it. A failed connection with the entry off now offers it: the
button opens the settings page and highlights the switch in a one-step tour,
and the real tour got a WARP step. The 'tunnel does not come up' message waits
for all four recovery candidates.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-25 18:27:56 -05:00

19 lines
664 B
Python

"""Обучающая экскурсия по приложению."""
from __future__ import annotations
from PyQt6.QtCore import Qt
from PyQt6.QtWidgets import QWidget
from .overlay import TourOverlay
from .steps import TOUR_STEPS, WARP_HINT_STEP, TourStep
__all__ = ["TOUR_STEPS", "WARP_HINT_STEP", "TourOverlay", "TourStep", "active_tour"]
def active_tour(window: QWidget) -> TourOverlay | None:
"""Идущая в окне экскурсия, если она есть."""
for overlay in window.findChildren(TourOverlay, options=Qt.FindChildOption.FindDirectChildrenOnly):
if not overlay._done:
return overlay
return None