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()
|
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 {
|
Column {
|
||||||
padding: 10
|
padding: 10
|
||||||
id: settingsColumn1
|
id: settingsColumn1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue