Commit 02dabe3c authored by Harald Sitter's avatar Harald Sitter
Browse files

dont fill the entire page with busy indication

it looks silly to have a huge indicator.

instead use a wrapper item and center the indicator inside
parent 3fd6518c
......@@ -25,32 +25,35 @@ QQC2.StackView {
// it into the stack once they are done with their thing.
property var pendingStack: []
initialItem: QQC2.BusyIndicator {
running: !sambaPlugin.ready || !groupManager.ready
onRunningChanged: {
if (running) {
return
}
initialItem: Item {
QQC2.BusyIndicator {
anchors.centerIn: parent
running: !sambaPlugin.ready || !groupManager.ready
onRunningChanged: {
if (running) {
return
}
pendingStack.push("ACLPage.qml")
if (!sambaPlugin.userManager.currentUser().inSamba) {
pendingStack.push("UserPage.qml")
}
if (!groupManager.member) {
pendingStack.push("GroupPage.qml")
}
if (!sambaPlugin.isSambaInstalled()) {
// NB: the plugin may be built without installer support!
if (Samba.Installer === undefined) {
pendingStack.push("MissingSambaPage.qml")
} else {
pendingStack.push("InstallPage.qml")
pendingStack.push("ACLPage.qml")
if (!sambaPlugin.userManager.currentUser().inSamba) {
pendingStack.push("UserPage.qml")
}
if (!groupManager.member) {
pendingStack.push("GroupPage.qml")
}
if (!sambaPlugin.isSambaInstalled()) {
// NB: the plugin may be built without installer support!
if (Samba.Installer === undefined) {
pendingStack.push("MissingSambaPage.qml")
} else {
pendingStack.push("InstallPage.qml")
}
}
}
stack.clear()
stack.push(pendingStack.pop())
stack.clear()
stack.push(pendingStack.pop())
}
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment