mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-03 08:15:37 +00:00
Save preferences on destruction in case the user closes Moonlight directly from the settings page
This commit is contained in:
parent
53098edc85
commit
89e9652075
@ -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…
x
Reference in New Issue
Block a user