aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBramastyo Harimukti <bramastyo.harimukti.santoso@pelagicore.com>2018-01-17 12:03:36 +0100
committerBramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com>2018-01-17 14:43:32 +0000
commit644c1e15abebe0e2cc71bfc2f36253c0cb0f4b61 (patch)
treeabe79c7439c69b0fb679e2e5b48152ed70be866b
parenta4642ad83dbefa700d0585d442d53c2f21bea5e2 (diff)
Revert: Show cluster only if there is second screen available
Change-Id: I77cdfa6ec60d2075594390f1109a1e827668f676 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
-rw-r--r--Main.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/Main.qml b/Main.qml
index a88f6c1..b3bcc00 100644
--- a/Main.qml
+++ b/Main.qml
@@ -35,12 +35,15 @@ import QtQuick.Controls 2.0
import controls 1.0
import utils 1.0
import models.startup 1.0
+import com.pelagicore.ScreenManager 1.0
BackgroundPane {
id: root
objectName: "MainContent"
- property bool showClusterIfPossible: ApplicationManager.systemProperties.showCluster && Style.withCluster
+ property bool showClusterIfPossible: ApplicationManager.systemProperties.showCluster
+ && Style.withCluster
+ && ScreenManager.screenCount() > 1
property var cluster
width: Style.screenWidth