Skip to content
Snippets Groups Projects
Commit 145c1ad1 authored by Aline Gondim Santos's avatar Aline Gondim Santos
Browse files

plugins: not reload when setting preferences

Daemon should handle if reloading is necessary.

GitLab: jami-plugins#24

Change-Id: Ided267a74c091fb5f93ec11f6a746b5ef241632d
parent 31340bc2
Branches
Tags
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment