From e8a2e085ede7ca5b80cccc568dedf79ca2324acb Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 28 Mar 2024 16:55:44 -0400 Subject: [PATCH] Hide navigation buttons when we have no header --- launcher/ui/Main.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/launcher/ui/Main.qml b/launcher/ui/Main.qml index cf867fe..1c91e22 100644 --- a/launcher/ui/Main.qml +++ b/launcher/ui/Main.qml @@ -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 {