From 89e96520753ff7b4f23ea8daf36d08a2ab61e767 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 13 Jan 2021 19:43:52 -0600 Subject: [PATCH] Save preferences on destruction in case the user closes Moonlight directly from the settings page --- app/gui/SettingsView.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/gui/SettingsView.qml b/app/gui/SettingsView.qml index d93cdb38..96116d71 100644 --- a/app/gui/SettingsView.qml +++ b/app/gui/SettingsView.qml @@ -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