spacr.qt.prefs
==============

.. py:module:: spacr.qt.prefs

.. autoapi-nested-parse::

   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
---------------

.. py:data:: ORG
   :value: 'Olafsson Lab'


.. py:data:: APP
   :value: 'SpaCR'


.. py:function:: get_last_source(app_key: str) -> str

   Return the last folder used for a given app, or '' if unknown.


.. py:function:: set_last_source(app_key: str, path: str) -> None

   Remember ``path`` as the most-recent source folder for ``app_key``.


.. py:function:: get_recent_sources(app_key: str, limit: int = 8) -> List[str]

   Return the recent-source list (most-recent first).


.. py:function:: push_recent_source(app_key: str, path: str, limit: int = 8) -> None

   Insert `path` at the head of the recent list and de-duplicate.


