mirror of https://github.com/KDE/kasts.git
Make sure that initialPage is not triggered on every globaldrawer action
This commit is contained in:
parent
ce360f5ff8
commit
d4d8daa73d
|
@ -28,11 +28,13 @@ Kirigami.ApplicationWindow {
|
||||||
cachePages: false
|
cachePages: false
|
||||||
}
|
}
|
||||||
|
|
||||||
pageStack.initialPage: mainPagePool.loadPage(SettingsManager.lastOpenedPage === "FeedListPage" ? "qrc:/FeedListPage.qml"
|
Component.onCompleted: {
|
||||||
: SettingsManager.lastOpenedPage === "QueuePage" ? "qrc:/QueuePage.qml"
|
pageStack.initialPage = mainPagePool.loadPageWithProperties(SettingsManager.lastOpenedPage === "FeedListPage" ? "qrc:/FeedListPage.qml"
|
||||||
: SettingsManager.lastOpenedPage === "EpisodeSwipePage" ? "qrc:/EpisodeSwipePage.qml"
|
: SettingsManager.lastOpenedPage === "QueuePage" ? "qrc:/QueuePage.qml"
|
||||||
: SettingsManager.lastOpenedPage === "DownloadSwipePage" ? "qrc:/DownloadSwipePage.qml"
|
: SettingsManager.lastOpenedPage === "EpisodeSwipePage" ? "qrc:/EpisodeSwipePage.qml"
|
||||||
: "qrc:/FeedListPage.qml")
|
: SettingsManager.lastOpenedPage === "DownloadSwipePage" ? "qrc:/DownloadSwipePage.qml"
|
||||||
|
: "qrc:/FeedListPage.qml")
|
||||||
|
}
|
||||||
|
|
||||||
globalDrawer: Kirigami.GlobalDrawer {
|
globalDrawer: Kirigami.GlobalDrawer {
|
||||||
isMenu: false
|
isMenu: false
|
||||||
|
|
Loading…
Reference in New Issue