From f8754cbe1b630da28d550f76cab989e5ab850d30 Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Fri, 28 Apr 2023 10:48:48 -0400 Subject: [PATCH] Fix settings dialog to use onClosed handler. --- qml/SettingsDialog.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 {