savepath

package
v0.0.0-...-6513b37 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const SaveDelay = 5 * time.Second

SaveDelay is the delay to wait before saving.

Variables

This section is empty.

Functions

func IsExpanded

func IsExpanded(b traverse.Breadcrumber) bool

IsExpanded returns true if the current breadcrumb node is expanded.

func Restore

func Restore(b traverse.Breadcrumber, asetter ActiveSetter)

Restore restores the expand state by calling SetActive. This is meant to be used on a ToggledButton.

func Save

func Save()

Save saves the list of paths. This function is not thread-safe. It is also non-blocking.

func Update

func Update(b traverse.Breadcrumber, expanded bool)

Types

type ActiveSetter

type ActiveSetter interface {
	SetActive(bool)
}

ActiveSetter is an interface for all widgets that allow setting the active state.

Jump to

Keyboard shortcuts

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