Fix mistake: loadPageWithProperties should have been loadPage

This commit is contained in:
Bart De Vries 2021-05-05 21:49:54 +02:00
parent d4d8daa73d
commit 372f91f4fb
1 changed files with 6 additions and 1 deletions

View File

@ -29,7 +29,12 @@ Kirigami.ApplicationWindow {
} }
Component.onCompleted: { 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 === "QueuePage" ? "qrc:/QueuePage.qml"
: SettingsManager.lastOpenedPage === "EpisodeSwipePage" ? "qrc:/EpisodeSwipePage.qml" : SettingsManager.lastOpenedPage === "EpisodeSwipePage" ? "qrc:/EpisodeSwipePage.qml"
: SettingsManager.lastOpenedPage === "DownloadSwipePage" ? "qrc:/DownloadSwipePage.qml" : SettingsManager.lastOpenedPage === "DownloadSwipePage" ? "qrc:/DownloadSwipePage.qml"