=== modified file 'debian/control'
--- debian/control 2015-05-12 14:18:34 +0000
+++ debian/control 2015-06-04 14:33:29 +0000
@@ -79,7 +79,7 @@
suru-icon-theme,
whoopsie-preferences (>= 0.9),
libsystemsettings1 (= ${binary:Version}),
- system-image-dbus (>= 2.5),
+ system-image-dbus (>= 2.5) | system-image-snappy-cli,
click,
ubuntu-keyboard-data (>= 0.99.trunk.phablet2+15.04.20150421),
urfkill,
=== modified file 'lib/SystemSettings/item-base.cpp'
--- lib/SystemSettings/item-base.cpp 2013-09-12 11:17:35 +0000
+++ lib/SystemSettings/item-base.cpp 2015-06-04 14:04:02 +0000
@@ -40,6 +40,7 @@
const QLatin1String keyHasDynamicKeywords("has-dynamic-keywords");
const QLatin1String keyHasDynamicVisibility("has-dynamic-visibility");
const QLatin1String keyHideByDefault("hide-by-default");
+const QLatin1String keyVisibleIfExists("visible-if-exists");
class ItemBasePrivate
{
=== modified file 'lib/SystemSettings/item-base.h'
--- lib/SystemSettings/item-base.h 2014-10-27 13:28:49 +0000
+++ lib/SystemSettings/item-base.h 2015-06-04 13:53:49 +0000
@@ -40,6 +40,7 @@
extern const QLatin1String keyHasDynamicKeywords;
extern const QLatin1String keyHasDynamicVisibility;
extern const QLatin1String keyHideByDefault;
+extern const QLatin1String keyVisibleIfExists;
class ItemBasePrivate;
class ItemBase: public QObject
=== modified file 'plugins/system-update/system-update.settings'
--- plugins/system-update/system-update.settings 2014-09-24 17:10:03 +0000
+++ plugins/system-update/system-update.settings 2015-06-04 14:30:49 +0000
@@ -9,6 +9,7 @@
"software",
"update",
"apps",
+ "application",
"automatic",
"download",
"upgrade",
@@ -16,5 +17,7 @@
],
"has-dynamic-keywords": false,
"has-dynamic-visibility": false,
- "page-component": "PageComponent.qml"
+ "page-component": "PageComponent.qml",
+ "visible-if-exists": "/usr/share/dbus-1/system-services/com.canonical.SystemImage.service"
}
+
=== modified file 'src/plugin.cpp'
--- src/plugin.cpp 2014-10-27 13:29:30 +0000
+++ src/plugin.cpp 2015-06-04 14:27:51 +0000
@@ -220,6 +220,12 @@
bool Plugin::isVisible() const
{
Q_D(const Plugin);
+ if (!d->m_data.value(keyVisibleIfExists).isNull()) {
+ QFile KeyFile(d->m_data.value(keyVisibleIfExists).toString());
+ if (!KeyFile.exists())
+ return false;
+ }
+
// TODO: visibility check depending on form-factor
if (d->m_data.value(keyHasDynamicVisibility).toBool()) {
if (!d->ensureLoaded()) return false;