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:
parent
6487e1a725
commit
e8a2e085ed
1 changed files with 7 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue