Skip to main content

Module notifications

Module notifications 

Source
Expand description

Provides desktop notification helpers using the GIO notification portal.

All functions are best-effort: if no running gio::Application is available, the call is silently ignored. No notification is fired more than once per concept per session – callers are responsible for the guard logic.

Statics§

ENABLED 🔒
Global kill-switch for desktop notifications, controlled by the user-facing “Enable Notifications” toggle in Settings → Behavior.

Functions§

send_connectivity_lost
Fired once per session when consecutive uploads all fail due to connectivity issues.
send_gio 🔒
Send a desktop notification via gio::Notification.
send_sync_summary
Fired once when the upload queue drains after an active sync cycle.
set_enabled
Update the notifications enabled flag (called from config load and settings save).