diff options
author | TheKodeToad <TheKodeToad@proton.me> | 2022-11-01 16:58:22 +0000 |
---|---|---|
committer | TheKodeToad <TheKodeToad@proton.me> | 2022-11-01 16:58:22 +0000 |
commit | 7f32c6464d84181fc8947f632da340a863dc53d6 (patch) | |
tree | b9e0fa98bcaef118e0ca871dfe65ba57e322a5db /launcher/ui/dialogs | |
parent | 04b39294ba012721279ca9d009f99f75178fd57a (diff) | |
download | PrismLauncher-7f32c6464d84181fc8947f632da340a863dc53d6.tar.gz PrismLauncher-7f32c6464d84181fc8947f632da340a863dc53d6.tar.bz2 PrismLauncher-7f32c6464d84181fc8947f632da340a863dc53d6.zip |
Initial better mod browser link implementation
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher/ui/dialogs')
-rw-r--r-- | launcher/ui/dialogs/ModDownloadDialog.cpp | 5 | ||||
-rw-r--r-- | launcher/ui/dialogs/ModDownloadDialog.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/launcher/ui/dialogs/ModDownloadDialog.cpp b/launcher/ui/dialogs/ModDownloadDialog.cpp index d740c8cb..38b4ffcf 100644 --- a/launcher/ui/dialogs/ModDownloadDialog.cpp +++ b/launcher/ui/dialogs/ModDownloadDialog.cpp @@ -187,3 +187,8 @@ void ModDownloadDialog::selectedPageChanged(BasePage* previous, BasePage* select // Same effect as having a global search bar selected_page->setSearchTerm(prev_page->getSearchTerm()); } + +bool ModDownloadDialog::selectPage(QString pageId) +{ + return m_container->selectPage(pageId); +}
\ No newline at end of file diff --git a/launcher/ui/dialogs/ModDownloadDialog.h b/launcher/ui/dialogs/ModDownloadDialog.h index 18a5f0f3..125cb776 100644 --- a/launcher/ui/dialogs/ModDownloadDialog.h +++ b/launcher/ui/dialogs/ModDownloadDialog.h @@ -53,6 +53,8 @@ public: const QList<ModDownloadTask*> getTasks(); const std::shared_ptr<ModFolderModel> &mods; + bool selectPage(QString pageId); + public slots: void confirm(); void accept() override; |