[object Object]

← back to Ticket System

Open ticket control from every bar tile

841b97afd53c6c185229e83468026dbda208ca67 · 2026-09-02 15:25:08 -0700 · Steve Abrams

Files touched

Diff

commit 841b97afd53c6c185229e83468026dbda208ca67
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Wed Sep 2 15:25:08 2026 -0700

    Open ticket control from every bar tile
---
 desktop-bar/TicketBar.swift | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/desktop-bar/TicketBar.swift b/desktop-bar/TicketBar.swift
index 39a4574b..ec52fa2a 100644
--- a/desktop-bar/TicketBar.swift
+++ b/desktop-bar/TicketBar.swift
@@ -67,6 +67,12 @@ private final class BarTile: NSButton {
     NSApp.activate(ignoringOtherApps: true)
     menu.popUp(positioning: nil, at: NSPoint(x: 4, y: bounds.height - 2), in: self)
   }
+
+  override func rightMouseDown(with event: NSEvent) {
+    guard let menu = menuProvider?() else { return }
+    NSApp.activate(ignoringOtherApps: true)
+    menu.popUp(positioning: nil, at: NSPoint(x: 4, y: bounds.height - 2), in: self)
+  }
 }
 
 private final class BarController: NSObject, NSApplicationDelegate, WKNavigationDelegate {
@@ -118,7 +124,7 @@ private final class BarController: NSObject, NSApplicationDelegate, WKNavigation
       let tile = BarTile(key: key, label: label, width: savedWidths[key] ?? defaultWidth)
       tile.dragHandler = { [weak self] key, x in self?.moveTile(key, toward: x) }
       tile.menuProvider = { [weak self] in self?.menu(for: key) ?? NSMenu() }
-      if key == "counts" { tile.clickHandler = { [weak self] in self?.openTicketPopup() } }
+      tile.clickHandler = { [weak self] in self?.openTicketPopup() }
       return tile
     }
     let open = NSButton(title: "Open Fleet ↗", target: self, action: #selector(openViewer))

← 5ac7db01 Record ticket control popup proof  ·  back to Ticket System  ·  board: Run Now no longer depends on confirm()/alert() (brows 9a172ef3 →