Add simple hint when no files are loaded

This commit is contained in:
Vyn 2024-04-23 10:40:46 +02:00
parent d8d50582c3
commit 1113118c06

View file

@ -119,8 +119,19 @@ Window {
}
}
Component {
id: gettingStartedComponent
AppText {
text: "You currently have no files loaded, you can add them by clicking on the cog icon on the left pane"
anchors.centerIn: parent
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}
}
Loader {
sourceComponent: selectedView === "list" ? listViewComponent
sourceComponent: backend.tasks.length === 0 ? gettingStartedComponent
: selectedView === "list" ? listViewComponent
: selectedView === "calendar" ? calendarViewComponent
: undefined
Layout.fillWidth: true