1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-08-26 09:43:56 +02:00

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
This commit is contained in:
Aline Gondim Santos 2022-10-11 09:52:31 -03:00
parent 31340bc224
commit 145c1ad1f2

View file

@ -61,12 +61,7 @@ Rectangle {
function setPreference(pluginId, preferenceKey, preferenceNewValue) function setPreference(pluginId, preferenceKey, preferenceNewValue)
{ {
if (isLoaded) { PluginModel.setPluginPreference(pluginId, accountId, preferenceKey, preferenceNewValue)
PluginModel.unloadPlugin(pluginId)
PluginModel.setPluginPreference(pluginId, accountId, preferenceKey, preferenceNewValue)
PluginModel.loadPlugin(pluginId)
} else
PluginModel.setPluginPreference(pluginId, accountId, preferenceKey, preferenceNewValue)
} }
ColumnLayout { ColumnLayout {