* 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.
16 lines
388 B
Go
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
|
|
}
|
|
}
|