From 145c1ad1f2e93feed54bce865a6760a53bcb6a89 Mon Sep 17 00:00:00 2001 From: Aline Gondim Santos <aline.gondimsantos@savoirfairelinux.com> Date: Tue, 11 Oct 2022 09:52:31 -0300 Subject: [PATCH] plugins: not reload when setting preferences Daemon should handle if reloading is necessary. GitLab: https://git.jami.net/savoirfairelinux/jami-plugins/-/issues/24 Change-Id: Ided267a74c091fb5f93ec11f6a746b5ef241632d --- .../settingsview/components/PluginPreferencesListView.qml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/app/settingsview/components/PluginPreferencesListView.qml b/src/app/settingsview/components/PluginPreferencesListView.qml index 52b1ef390..60b2ed801 100644 --- a/src/app/settingsview/components/PluginPreferencesListView.qml +++ b/src/app/settingsview/components/PluginPreferencesListView.qml @@ -61,12 +61,7 @@ Rectangle { function setPreference(pluginId, preferenceKey, preferenceNewValue) { - if (isLoaded) { - PluginModel.unloadPlugin(pluginId) - PluginModel.setPluginPreference(pluginId, accountId, preferenceKey, preferenceNewValue) - PluginModel.loadPlugin(pluginId) - } else - PluginModel.setPluginPreference(pluginId, accountId, preferenceKey, preferenceNewValue) + PluginModel.setPluginPreference(pluginId, accountId, preferenceKey, preferenceNewValue) } ColumnLayout { -- GitLab