Files
magpie/internal/gui/trayimage_click_darwin.go
T
lizhuo ebcd5281c2 gui: open matching allowance cards from macOS menu-bar quotas (#662)
* gui: navigate menu-bar quota cells to allowance cards

* gui: fix quota navigation in lightweight and folded views

Route quota hits through the existing status-item monitor rather than relying on local monitor ordering. Recreate released panels through panelWin, and expand hidden accounts before focusing them. Keep panel headers non-draggable and cancel pending navigation after five seconds or purposeful scrolling.

Add a native AppKit subprocess regression that fails with the former nil-panel dereference and verifies runtime-queued focus, closing, and recreation. Extend browser checks for folded accounts, expiry, cancellation, and panel drag state.
2026-10-03 19:01:13 +08:00

16 lines
388 B
Go

//go:build darwin && cgo
package gui
import "C"
// The export lives separately because its cgo preamble must not define functions.
// Copy the native string before returning; a refresh can replace the drawn cells.
//
//export mpCellClicked
func mpCellClicked(id *C.char) {
if onTrayCellClick != nil {
onTrayCellClick(C.GoString(id)) // the handler schedules work after startup
}
}