aboutsummaryrefslogtreecommitdiff
path: root/launcher/Application.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-07-21 11:11:12 +0200
committerGitHub <noreply@github.com>2023-07-21 11:11:12 +0200
commit821dd8400b1a27ab1f932200bfa77d7a04edef5d (patch)
treec30d09e1b72e74fae3830fbbec514b236cc0bf51 /launcher/Application.cpp
parent593f45298614843c14acb11994320f90a474c750 (diff)
parentb7bccb905829eebea039a32edf93606f5fc5defa (diff)
downloadPrismLauncher-821dd8400b1a27ab1f932200bfa77d7a04edef5d.tar.gz
PrismLauncher-821dd8400b1a27ab1f932200bfa77d7a04edef5d.tar.bz2
PrismLauncher-821dd8400b1a27ab1f932200bfa77d7a04edef5d.zip
Merge pull request #1253 from Trial97/catpacks
Diffstat (limited to 'launcher/Application.cpp')
-rw-r--r--launcher/Application.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp
index d6c135de..aeea90f1 100644
--- a/launcher/Application.cpp
+++ b/launcher/Application.cpp
@@ -1186,7 +1186,17 @@ QIcon Application::getThemedIcon(const QString& name)
return QIcon::fromTheme(name);
}
-bool Application::openJsonEditor(const QString &filename)
+QList<CatPack*> Application::getValidCatPacks()
+{
+ return m_themeManager->getValidCatPacks();
+}
+
+QString Application::getCatPack(QString catName)
+{
+ return m_themeManager->getCatPack(catName);
+}
+
+bool Application::openJsonEditor(const QString& filename)
{
const QString file = QDir::current().absoluteFilePath(filename);
if (m_settings->get("JsonEditor").toString().isEmpty())