mirror of
https://invent.kde.org/marcoa/a-la-karte.git
synced 2026-02-09 21:13:08 +00:00
QML: show daemon availability banner
Expose the Game Center daemon availability to the UI and show\nan inline error banner when it is not reachable, with a retry action.
This commit is contained in:
parent
0485954eb8
commit
ded8ad83da
1 changed files with 35 additions and 13 deletions
|
|
@ -893,9 +893,30 @@ Kirigami.ApplicationWindow {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
anchors.fill: parent
|
||||||
|
spacing: 0
|
||||||
|
|
||||||
|
Kirigami.InlineMessage {
|
||||||
|
id: daemonBanner
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.bottomMargin: Kirigami.Units.smallSpacing
|
||||||
|
type: Kirigami.MessageType.Error
|
||||||
|
visible: !App.launcher.daemonAvailable
|
||||||
|
text: i18n("Game Center daemon is not running. Game launching is unavailable.")
|
||||||
|
actions: [
|
||||||
|
Kirigami.Action {
|
||||||
|
text: i18n("Retry")
|
||||||
|
icon.name: "view-refresh"
|
||||||
|
onTriggered: App.launcher.retryDaemonConnection()
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
LibraryView {
|
LibraryView {
|
||||||
id: libraryView
|
id: libraryView
|
||||||
anchors.fill: parent
|
Layout.fillWidth: true
|
||||||
|
Layout.fillHeight: true
|
||||||
|
|
||||||
filterSource: root.currentSource
|
filterSource: root.currentSource
|
||||||
searchActive: root.searchActive
|
searchActive: root.searchActive
|
||||||
|
|
@ -913,6 +934,7 @@ Kirigami.ApplicationWindow {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
GameDetailsSheet {
|
GameDetailsSheet {
|
||||||
id: detailsSheet
|
id: detailsSheet
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue