Files
pay/guis/mobile/Loading.qml
T
tomFlowee 42beac39c6 Change lock to wait instead of notify
We already check for duplicate running, instead of showing the non
functional UI, this changes to instead wait for the lock to become free
after which we run the 'init' and load all the data.
2026-02-11 20:24:41 +01:00

50 lines
1.5 KiB
QML

/*
* This file is part of the Flowee project
* Copyright (C) 2022 Tom Zander <tom@flowee.org>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick
import "../Flowee" as Flowee
Rectangle {
color: "#0b1088"
width: parent.width
height: parent.height
function takeFocus() {
// method called from main.qml
// We don't need focus, though. Empty method.
}
Image {
source: "qrc:/FloweePay-light.svg"
// ratio: 449 / 77
width: parent.width / 10 * 8
height: width / 449 * 77
anchors.horizontalCenter: parent.horizontalCenter
y: parent.height / 4
}
Flowee.Label {
text: qsTr("Waiting for background task to finish")
wrapMode: Text.Wrap
width: parent.width
horizontalAlignment: Text.AlignHCenter
visible: waitingForLock
y: parent.height / 2
font.bold: true
font.pixelSize: mainWindow.font.pixelSize * 1.6
}
}