Skip to content
Snippets Groups Projects
Commit 22b9fe63 authored by Albert  Babí Oller's avatar Albert Babí Oller Committed by Albert Babí Oller
Browse files

callview: hide plugins option when not available

Gitlab: #104

Change-Id: I2c83411dc8363cc60b2abf7646927a679fbcba74
parent ef776637
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@ import QtQuick 2.14
import QtQuick.Controls 2.14
import QtGraphicalEffects 1.12
import net.jami.Models 1.0
import net.jami.Adapters 1.0
import "../../commoncomponents"
......@@ -115,11 +116,13 @@ Item {
})
}
ContextMenuGenerator.addMenuItem(JamiStrings.viewPlugin,
"qrc:/images/icons/extension_24dp.svg",
function (){
root.pluginItemClicked()
})
if (UtilsAdapter.checkShowPluginsButton()) {
ContextMenuGenerator.addMenuItem(JamiStrings.viewPlugin,
"qrc:/images/icons/extension_24dp.svg",
function (){
root.pluginItemClicked()
})
}
root.height = ContextMenuGenerator.getMenu().height
root.width = ContextMenuGenerator.getMenu().width
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment