diff --git a/qml/SettingsDialog.qml b/qml/SettingsDialog.qml index 9d3e140a..43c484a1 100644 --- a/qml/SettingsDialog.qml +++ b/qml/SettingsDialog.qml @@ -90,8 +90,11 @@ The prompt below is a question to answer, a task to complete, or a conversation Download.downloadLocalModelsPath = settings.modelPath } - Component.onDestruction: { - settings.sync() + Connections { + target: settingsDialog + function onClosed() { + settings.sync() + } } Item {