Skip to content

Commit 552c7a4

Browse files
committed
Sync settings after saving config
Call `self.settings.sync()` after saving the config and updating stored paths/snapshots so settings are flushed promptly. If syncing fails, log a debug message with exception info without interrupting the save flow.
1 parent d1d1e66 commit 552c7a4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎dlclivegui/gui/main_window.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,12 @@ def _save_config_to_path(self, path: Path) -> bool:
11091109
config.save(path)
11101110
self._settings_store.set_last_config_path(str(path))
11111111
self._settings_store.save_full_config_snapshot(config)
1112+
1113+
try:
1114+
self.settings.sync()
1115+
except Exception:
1116+
logger.debug("Failed to sync settings after saving config", exc_info=True)
1117+
11121118
except Exception as exc: # pragma: no cover - GUI interaction
11131119
self._show_error(str(exc))
11141120
return False

0 commit comments

Comments
 (0)