gui.utils.utils_save

File:

EuljiroBible/gui/utils/utils_save.py

Author:

Benjamin Jaedon Choi - https://github.com/saintbenjamin

Affiliated Church:

The Eulji-ro Presbyterian Church [대한예수교장로회(통합) 을지로교회]

Address:

The Eulji-ro Presbyterian Church, 24-10, Eulji-ro 20-gil, Jung-gu, Seoul 04549, South Korea

Telephone:

+82-2-2266-3070

E-mail:

euljirochurch [at] G.M.A.I.L. (replace [at] with @ and G.M.A.I.L as you understood.)

License:

MIT License with Attribution Requirement (see LICENSE file for details); Copyright (c) 2025 The Eulji-ro Presbyterian Church.

Handles saving of user settings from the GUI state at exit.

gui.utils.utils_save.save_user_settings(app, win)[source]

Persist user settings when the GUI application exits.

This function collects relevant runtime UI state from the main window and writes it to the settings store. It is typically invoked during application shutdown to ensure that the next launch restores the user’s most recent context.

Captured settings include:

  • Application font family and size

  • Last selected Bible versions

  • Last selected book, chapter, and verse

  • Current dark mode state

Parameters:
  • app (QApplication) – Active QApplication instance used to query global font and theme (dark mode) state.

  • win (QMainWindow) – Main application window containing the tab widgets and verse-selection UI.

Returns:

None