Skip to main content

Module app_context

Module app_context 

Source
Expand description

Consolidated application context passed through the UI and background services.

Replaces the growing list of individual Arc<T> parameters that were previously threaded through build_settings_window() and open_settings_if_needed().

Structs§

AppContext
Shared application context holding all dependency handles that UI and background tasks need. Wrapped in Arc at construction time so it can be cloned cheaply.
PendingDeletions
Two-tick deletion confirmation. For mass deletions, require the same asset to be missing across two consecutive reconciler observations before trashing — defends against transient server-side stale reads.
RecentSelfPaths
TTL’d set of paths Mimick itself just modified, used to suppress the filesystem events those modifications cause.
ReconcileGuard
Active lock guard that frees the album lock when dropped.
ReconcileLocks
Per-album reconcile lock. Prevents the periodic poller and a manual sync click from racing each other into duplicate downloads / duplicate trash.