1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 11:47:46 +00:00

Hide navigation buttons when we have no header

This commit is contained in:
Joshua Goins 2024-03-28 16:55:44 -04:00
parent 6487e1a725
commit e8a2e085ed

View file

@ -17,13 +17,19 @@ Kirigami.ApplicationWindow {
minimumWidth: 800
minimumHeight: 500
title: pageStack.currentItem?.title
title: pageStack.currentItem !== undefined ? pageStack.currentItem.title : ""
property bool checkedAutoLogin: false
pageStack {
globalToolBar {
style: Kirigami.ApplicationHeaderStyle.ToolBar
// TODO: they should really do this check in kirigami
showNavigationButtons: if (pageStack.currentItem?.globalToolBarStyle === Kirigami.ApplicationHeaderStyle.ToolBar) {
Kirigami.ApplicationHeaderStyle.ShowBackButton
} else {
Kirigami.ApplicationHeaderStyle.NoNavigationButtons
}
}
initialPage: Kirigami.Page {
Kirigami.LoadingPlaceholder {