Save preferences on destruction in case the user closes Moonlight directly from the settings page

This commit is contained in:
Cameron Gutman 2021-01-13 19:43:52 -06:00
parent 53098edc85
commit 89e9652075

View File

@ -41,6 +41,12 @@ Flickable {
StreamingPreferences.save()
}
Component.onDestruction: {
// Also save preferences on destruction, since we won't get a
// deactivating callback if the user just closes Moonlight
StreamingPreferences.save()
}
Column {
padding: 10
id: settingsColumn1