Fix application TUN reconnect notices

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2026-10-06 23:57:16 +08:00
parent 79ab0b146a
commit 6380eb9f30
9 changed files with 192 additions and 9 deletions
@@ -149,6 +149,10 @@ class ConnectionController(QtCore.QObject):
"""Return whether the connection is established."""
return self.state is ConnectionState.Connected
def usesApplicationTUN(self) -> bool:
"""Read application TUN ownership from the committed runtime manager."""
return self._coreManager.usesApplicationTUN()
def isConnecting(self) -> bool:
"""Return whether the connection is starting."""
return self.state is ConnectionState.Connecting