Skip to content

Commit 5c29b65

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 c1fcb60 commit 5c29b65

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
@@ -1107,6 +1107,12 @@ def _save_config_to_path(self, path: Path) -> bool:
11071107
config.save(path)
11081108
self._settings_store.set_last_config_path(str(path))
11091109
self._settings_store.save_full_config_snapshot(config)
1110+
1111+
try:
1112+
self.settings.sync()
1113+
except Exception:
1114+
logger.debug("Failed to sync settings after saving config", exc_info=True)
1115+
11101116
except Exception as exc: # pragma: no cover - GUI interaction
11111117
self._show_error(str(exc))
11121118
return False

0 commit comments

Comments
 (0)