Make sure that initialPage is not triggered on every globaldrawer action

This commit is contained in:
Bart De Vries 2021-05-05 16:58:43 +02:00
parent ce360f5ff8
commit d4d8daa73d
1 changed files with 7 additions and 5 deletions

View File

@ -28,11 +28,13 @@ Kirigami.ApplicationWindow {
cachePages: false
}
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"
: "qrc:/FeedListPage.qml")
Component.onCompleted: {
pageStack.initialPage = mainPagePool.loadPageWithProperties(SettingsManager.lastOpenedPage === "FeedListPage" ? "qrc:/FeedListPage.qml"
: SettingsManager.lastOpenedPage === "QueuePage" ? "qrc:/QueuePage.qml"
: SettingsManager.lastOpenedPage === "EpisodeSwipePage" ? "qrc:/EpisodeSwipePage.qml"
: SettingsManager.lastOpenedPage === "DownloadSwipePage" ? "qrc:/DownloadSwipePage.qml"
: "qrc:/FeedListPage.qml")
}
globalDrawer: Kirigami.GlobalDrawer {
isMenu: false