Fix settings dialog to use onClosed handler.

pull/520/head
Adam Treat 1 year ago
parent 305c9dc30c
commit f8754cbe1b

@ -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 {

Loading…
Cancel
Save