Ensure that currentPage is set on first run

This commit is contained in:
Bart De Vries 2023-02-10 22:19:49 +01:00
parent c0410506d1
commit 40c3a5138c
1 changed files with 4 additions and 1 deletions

View File

@ -55,7 +55,10 @@ Kirigami.ApplicationWindow {
case "FeedListPage": return "qrc:/FeedListPage.qml"; case "FeedListPage": return "qrc:/FeedListPage.qml";
case "DownloadListPage": return "qrc:/DownloadListPage.qml"; case "DownloadListPage": return "qrc:/DownloadListPage.qml";
case "SettingsPage": return "qrc:/Settings/SettingsPage.qml"; case "SettingsPage": return "qrc:/Settings/SettingsPage.qml";
default: return "qrc:/FeedListPage.qml"; default: {
currentPage = "FeedListPage";
return "qrc:/FeedListPage.qml";
}
} }
} }
function pushPage(page) { function pushPage(page) {