aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/widgets/PageContainer.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-08-12 10:58:27 +0200
committerSefa Eyeoglu <contact@scrumplex.net>2023-08-12 10:58:27 +0200
commit6423edaa76c362ea9fd32a4a0ddeda78e06793db (patch)
tree4e052ff604fc42831ef28fe1efa6fc77ed352b03 /launcher/ui/widgets/PageContainer.cpp
parent74fe2fb2a6282a9292cc912b865ce0179dbc3412 (diff)
parent44153a28e369943ea16545146fec81f7a62e44dd (diff)
downloadPrismLauncher-6423edaa76c362ea9fd32a4a0ddeda78e06793db.tar.gz
PrismLauncher-6423edaa76c362ea9fd32a4a0ddeda78e06793db.tar.bz2
PrismLauncher-6423edaa76c362ea9fd32a4a0ddeda78e06793db.zip
Merge remote-tracking branch 'upstream/staging' into curseforge-url-handle
Diffstat (limited to 'launcher/ui/widgets/PageContainer.cpp')
-rw-r--r--launcher/ui/widgets/PageContainer.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/launcher/ui/widgets/PageContainer.cpp b/launcher/ui/widgets/PageContainer.cpp
index b98c9796..dbbed36a 100644
--- a/launcher/ui/widgets/PageContainer.cpp
+++ b/launcher/ui/widgets/PageContainer.cpp
@@ -1,8 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
/*
- * PolyMC - Minecraft Launcher
+ * Prism Launcher - Minecraft Launcher
* Copyright (C) 2022 Sefa Eyeoglu <contact@scrumplex.net>
* Copyright (c) 2022 Jamie Mansfield <jmansfield@cadixdev.org>
+ * Copyright (C) 2023 TheKodeToad <TheKodeToad@proton.me>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -141,7 +142,12 @@ BasePage* PageContainer::getPage(QString pageId)
return m_model->findPageEntryById(pageId);
}
-const QList<BasePage*> PageContainer::getPages() const
+BasePage* PageContainer::selectedPage() const
+{
+ return m_currentPage;
+}
+
+const QList<BasePage*>& PageContainer::getPages() const
{
return m_model->pages();
}