04/24 Fixed keyring issues
This commit is contained in:
@@ -65,7 +65,15 @@ class App(tk.Tk):
|
||||
SettingsView(self, on_save_callback=on_complete, first_run=True)
|
||||
|
||||
def _init_db(self):
|
||||
"""Initialise database schema, then proceed to login."""
|
||||
"""Initialise database schema, then proceed to login.
|
||||
|
||||
reload_db_config() is called first to ensure DB_CONFIG is populated
|
||||
with the credentials just saved by the Settings dialog. Without this,
|
||||
DB_CONFIG retains its placeholder values for the remainder of the
|
||||
first-run session and every connection attempt fails.
|
||||
"""
|
||||
from config import reload_db_config
|
||||
reload_db_config()
|
||||
try:
|
||||
initialize_database()
|
||||
# Signal the DB log handler that the pool is ready so queued
|
||||
|
||||
Reference in New Issue
Block a user