From 598938ede5e2ed0ca6c985b206968b9aad68f99c Mon Sep 17 00:00:00 2001 From: Zac Gaetano Date: Sun, 10 May 2026 14:39:04 -0400 Subject: [PATCH] Fix sidebar text cutoff + Teams launch ambush dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two user-reported bugs: 1) CheckBox content was clipping in the 380px settings panel ('Control surface (Stream Deck / Companion / w...' / 'LAN-reachable (allow other machines on yo...'). The Wd.CheckBox template used a horizontal StackPanel which doesn't bound child width, so long Content strings ran off the column without wrapping. Replaced StackPanel with a Grid (Auto + *) and injected a TextBlock style with TextWrapping=Wrap into the ContentPresenter resources — when WPF auto-wraps a string Content in a TextBlock, the resource lookup gives it Wrap. 2) The rail Launch Teams button ambushed operators: clicking with Teams already running (which is common when the eye-toggle has hidden Teams' windows) opened a 'Close all Teams windows now?' dialog. Operators expect Launch to mean 'show me Teams', not 'stop Teams'. Split the actions: - Left-click: Teams not running → launch; Teams hidden → restore + foreground; Teams visible → bring to front. Always idempotent-progressive. - Right-click: ask to stop Teams (preserves the kill path for those who want it). TeamsLauncher.TryLaunch now collects per-attempt errors instead of swallowing them — a real failure surfaces 'ms-teams: URI → ' / 'AppsFolder shell → ' / 'classic Update.exe → not found at ' so 'No Teams found' isn't a black box. Also added a 2nd path: explorer.exe shell:appsFolder\\\\MSTeams_8wekyb3d8bbwe!MSTeams (AppX activation via the OS's own Start-menu verb) as a fallback if the URI handler is misconfigured. Removed the broken bare-stub call to %LOCALAPPDATA%\\\\Microsoft\\\\WindowsApps\\\\ms-teams.exe — that's a 0-byte AppX placeholder that never worked outside an AppX context. --- src/TeamsISO.App/MainWindow.xaml | 11 ++- src/TeamsISO.App/MainWindow.xaml.cs | 80 ++++++++++++++------ src/TeamsISO.App/Services/TeamsLauncher.cs | 53 +++++++++---- src/TeamsISO.App/Themes/WildDragonTheme.xaml | 40 +++++++++- 4 files changed, 143 insertions(+), 41 deletions(-) diff --git a/src/TeamsISO.App/MainWindow.xaml b/src/TeamsISO.App/MainWindow.xaml index 734d602..d6792d7 100644 --- a/src/TeamsISO.App/MainWindow.xaml +++ b/src/TeamsISO.App/MainWindow.xaml @@ -123,11 +123,18 @@ - +