Skip to content

Commit 3215cd0

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 fbe55e5 commit 3215cd0

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

0 commit comments

Comments
 (0)