Only open Plugin parameters page if it has any

This commit is contained in:
Michał Sawicz 2021-01-31 12:08:37 +01:00
parent 1a5d9ec2b9
commit bc9ffbfc8b
No known key found for this signature in database
GPG Key ID: 69EFECD3C61D2645

View File

@ -1,6 +1,6 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Copyright 2013 - 2020, nymea GmbH
* Copyright 2013 - 2021, nymea GmbH
* Contact: contact@nymea.io
*
* This file is part of nymea.
@ -70,7 +70,7 @@ SettingsPageBase {
iconName: "../images/plugin.svg"
text: model.name
progressive: plugin.paramTypes.count > 0
onClicked: pageStack.push(Qt.resolvedUrl("PluginParamsPage.qml"), {plugin: plugin})
onClicked: if (progressive) { pageStack.push(Qt.resolvedUrl("PluginParamsPage.qml"), {plugin: plugin}) }
}
}
}