diff options
| author | Tomasz Sterna <tomek@xiaoka.com> | 2015-04-17 13:36:51 +0200 |
|---|---|---|
| committer | Tomasz Sterna <tomek@xiaoka.com> | 2015-04-17 13:36:51 +0200 |
| commit | e059c47ff2986c329d075f6f5fbedbf19cff430d (patch) | |
| tree | 7b68dac29a0583811270bcf605ef6a194dec1220 /app/qml | |
| parent | dc899d978eaf0ad2afc2768ab8b731974b791966 (diff) | |
Show configure option only for configurable apps
Test for "configurable" capability.
Diffstat (limited to 'app/qml')
| -rw-r--r-- | app/qml/pages/WatchPage.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/qml/pages/WatchPage.qml b/app/qml/pages/WatchPage.qml index 55f4db0..730f850 100644 --- a/app/qml/pages/WatchPage.qml +++ b/app/qml/pages/WatchPage.qml @@ -96,6 +96,7 @@ Page { property var appInfo: pebbled.appInfoByUuid(modelData) property bool isKnownApp: appInfo.hasOwnProperty("uuid") property bool isLocalApp: appInfo.hasOwnProperty("isLocal") && appInfo.isLocal + property bool isConfigurable: appInfo.hasOwnProperty("isConfigurable") && appInfo.isConfigurable property bool busy: false function configure() { @@ -212,7 +213,7 @@ Page { } MenuItem { text: qsTr("Configure...") - visible: !isEmptySlot && isLocalApp + visible: !isEmptySlot && isLocalApp && isConfigurable onClicked: configure(); } MenuItem { |
