session

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package session persists and restores the set of files that were open when the window last closed, via Fyne's app-scoped cache.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(app fyne.App) []fyne.URI

Load returns the file set saved by the previous run's Save call, or nil if there is none - first launch, a cleared session, or a corrupt cache entry are all treated the same as "nothing to restore" rather than surfaced as an error, since there's no user action to report one to yet.

func Save

func Save(app fyne.App, files []fyne.URI)

Save records files as the session offered on the next launch. An empty files removes any previously saved session instead of writing one, so quitting after Escape (reset) - a deliberate "start fresh" - doesn't leave a stale offer for a session the user already walked away from.

Types

This section is empty.

Jump to

Keyboard shortcuts

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