Save preferences on destruction in case the user closes Moonlight directly from the settings page
This commit is contained in:
parent
53098edc85
commit
89e9652075
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue