Add initial sync indicator. #144
This commit is contained in:
11
qml/main.qml
11
qml/main.qml
@@ -68,6 +68,17 @@ ApplicationWindow {
|
|||||||
onActivated: Qt.quit()
|
onActivated: Qt.quit()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ToolTip {
|
||||||
|
id: busyIndicator
|
||||||
|
|
||||||
|
parent: ApplicationWindow.overlay
|
||||||
|
|
||||||
|
visible: spectralController.busy
|
||||||
|
text: "Loading, please wait"
|
||||||
|
|
||||||
|
font.pixelSize: 14
|
||||||
|
}
|
||||||
|
|
||||||
ToolTip {
|
ToolTip {
|
||||||
id: errorControl
|
id: errorControl
|
||||||
|
|
||||||
|
|||||||
@@ -56,6 +56,9 @@ class Controller : public QObject {
|
|||||||
|
|
||||||
bool busy() { return m_busy; }
|
bool busy() { return m_busy; }
|
||||||
void setBusy(bool busy) {
|
void setBusy(bool busy) {
|
||||||
|
if (m_busy == busy) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
m_busy = busy;
|
m_busy = busy;
|
||||||
emit busyChanged();
|
emit busyChanged();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user