spacr.qt.prefs
Small QSettings wrapper for per-user persistence of “recent” paths.
The organization/application name is set by launch() in spacr.qt.app, so this module works with the platform-appropriate settings backend (macOS plist, Windows registry, Linux INI file).
Module Contents
- spacr.qt.prefs.get_last_source(app_key: str) str[source]
Return the last folder used for a given app, or ‘’ if unknown.
- spacr.qt.prefs.set_last_source(app_key: str, path: str) None[source]
Remember
pathas the most-recent source folder forapp_key.