From 1facae9ba5deb5af12093d70674b1661b1685c3d Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 11 Feb 2018 22:50:40 +0100 Subject: Restart kube after a storage upgrade. We currently don't deal with disappearing databases, and the db's are loaded on process initialization. Thus we have to restart Kube for now when something was upgraded. --- components/kube/qml/upgrade.qml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'components') diff --git a/components/kube/qml/upgrade.qml b/components/kube/qml/upgrade.qml index 8548b54d..3ce1c63b 100644 --- a/components/kube/qml/upgrade.qml +++ b/components/kube/qml/upgrade.qml @@ -37,11 +37,18 @@ Controls2.ApplicationWindow { } spacing: 0 Kube.Heading { - text: qsTr("Please wait while Kube is upgrading...") + text: !upgradeComplete ? qsTr("Please wait while Kube is upgrading...") : qsTr("Kube has upgraded the storage layer.") color: Kube.Colors.highlightColor } Kube.Label { - text: qsTr("This might take a while.") + text: !upgradeComplete ? qsTr("This might take a while.") : qsTr("Please exit and restart Kube.") + } + Kube.Button { + anchors.topMargin: Kube.Units.largeSpacing + text: qsTr("Exit") + onClicked: { + app.close() + } } } } -- cgit v1.2.3