Fix settings dialog to use onClosed handler.

This commit is contained in:
Adam Treat 2023-04-28 10:48:48 -04:00
parent 305c9dc30c
commit f8754cbe1b

View File

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