v1.9.27: add disconnect button in terminal + disconnect in context menu

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
chrome-storm-c442
2026-03-06 05:27:03 -05:00
parent 7522908404
commit 064de8df8d
10 changed files with 78 additions and 2 deletions

View File

@@ -104,6 +104,12 @@ class PowershellTab(ctk.CTkFrame):
if self._current_alias and not self._client:
self._connect(self._current_alias)
def disconnect(self):
"""Disconnect WinRM and update UI (called by app)."""
self._disconnect()
if self._current_alias:
self._set_status(t("term_click_to_connect").format(alias=self._current_alias), "#f59e0b")
# ── Connection ───────────────────────────────────────────────────
def _connect(self, alias: str):