tray

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg *config.Config, onOpenExample func(), onOpenBackups func(), onQuit func(), updateCh <-chan UpdateInfo, trusted *TrustedFolderHooks, grants *GrantHooks)

Types

type GrantHooks added in v1.2.0

type GrantHooks struct {
	List   func() []string
	Revoke func(path string) []string
}

GrantHooks are the app operations the Temporary Access Granted submenu drives. List returns the current runtime grants; Revoke withdraws one and returns the updated list. There is no Add: grants are created by the permission dialog, not the tray.

type Tray

type Tray struct {
	// contains filtered or unexported fields
}

type TrustedFolderHooks added in v1.2.0

type TrustedFolderHooks struct {
	List   func() []string
	Add    func() []string
	Remove func(dir string) []string
}

TrustedFolderHooks are the app operations the Trusted Folders submenu drives. Each returns the authoritative trusted list so the tray always re-renders from truth rather than tracking state itself. Add pops the native folder picker and trusts the choice; Remove untrusts one; List is the initial render.

type UpdateInfo

type UpdateInfo struct {
	Version string
	URL     string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL