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
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 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 ¶
Click to show internal directories.
Click to hide internal directories.