From c4fdfa22d9725de7dbbc16527aa2753b3409daef Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Tue, 14 Mar 2023 15:35:34 +0100 Subject: [PATCH] Show back button when pushing the settings on mobile To use with https://invent.kde.org/frameworks/kirigami/-/merge_requests/992 Signed-off-by: Carl Schwan (cherry picked from commit 87213dc9dd5c2854da165094e7d1564b6a1f7cbb) --- src/qml/main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qml/main.qml b/src/qml/main.qml index 2973d12db..8e8b137b6 100644 --- a/src/qml/main.qml +++ b/src/qml/main.qml @@ -165,7 +165,7 @@ Kirigami.ApplicationWindow { pageStack.defaultColumnWidth: roomListPage ? roomListPage.currentWidth : 0 pageStack.globalToolBar.style: Kirigami.ApplicationHeaderStyle.ToolBar - pageStack.globalToolBar.showNavigationButtons: pageStack.currentIndex > 0 ? Kirigami.ApplicationHeaderStyle.ShowBackButton : 0 + pageStack.globalToolBar.showNavigationButtons: pageStack.currentIndex > 0 || pageStack.layers.depth > 1 ? Kirigami.ApplicationHeaderStyle.ShowBackButton : 0 ConfirmLogoutDialog { id: confirmLogoutDialog