mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-03 14:25:38 +02:00
callview: hide plugins option when not available
Gitlab: #104 Change-Id: I2c83411dc8363cc60b2abf7646927a679fbcba74
This commit is contained in:
parent
ef776637ad
commit
22b9fe6374
1 changed files with 8 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue