From 372f91f4fb34bb47507a97f1209df7a301b062ac Mon Sep 17 00:00:00 2001 From: Bart De Vries Date: Wed, 5 May 2021 21:49:54 +0200 Subject: [PATCH] Fix mistake: loadPageWithProperties should have been loadPage --- src/qml/main.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/qml/main.qml b/src/qml/main.qml index 0cb3baba..11c1831f 100644 --- a/src/qml/main.qml +++ b/src/qml/main.qml @@ -29,7 +29,12 @@ Kirigami.ApplicationWindow { } Component.onCompleted: { - pageStack.initialPage = mainPagePool.loadPageWithProperties(SettingsManager.lastOpenedPage === "FeedListPage" ? "qrc:/FeedListPage.qml" + tabBarActive = SettingsManager.lastOpenedPage === "FeedListPage" ? 0 + : SettingsManager.lastOpenedPage === "QueuePage" ? 0 + : SettingsManager.lastOpenedPage === "EpisodeSwipePage" ? 1 + : SettingsManager.lastOpenedPage === "DownloadSwipePage" ? 1 + : 0 + pageStack.initialPage = mainPagePool.loadPage(SettingsManager.lastOpenedPage === "FeedListPage" ? "qrc:/FeedListPage.qml" : SettingsManager.lastOpenedPage === "QueuePage" ? "qrc:/QueuePage.qml" : SettingsManager.lastOpenedPage === "EpisodeSwipePage" ? "qrc:/EpisodeSwipePage.qml" : SettingsManager.lastOpenedPage === "DownloadSwipePage" ? "qrc:/DownloadSwipePage.qml"