diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-07 20:18:36 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-07 20:18:36 +0300 |
commit | 8abe6b6732aa18b49199755c89dcedb90ae9c4b6 (patch) | |
tree | 9c3d130d220caac170ce13adf7b90e816397e01c /launcher/ui/dialogs | |
parent | e936bc4c60b4262cd70ff1eb3291dc3ead4c53ac (diff) | |
parent | 9b9d439fce9408712a594bb294e3bd5f108e31bc (diff) | |
download | PrismLauncher-8abe6b6732aa18b49199755c89dcedb90ae9c4b6.tar.gz PrismLauncher-8abe6b6732aa18b49199755c89dcedb90ae9c4b6.tar.bz2 PrismLauncher-8abe6b6732aa18b49199755c89dcedb90ae9c4b6.zip |
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into visit_mod_page
Diffstat (limited to 'launcher/ui/dialogs')
-rw-r--r-- | launcher/ui/dialogs/ResourceDownloadDialog.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/launcher/ui/dialogs/ResourceDownloadDialog.cpp b/launcher/ui/dialogs/ResourceDownloadDialog.cpp index 61c48e75..6d90480f 100644 --- a/launcher/ui/dialogs/ResourceDownloadDialog.cpp +++ b/launcher/ui/dialogs/ResourceDownloadDialog.cpp @@ -253,6 +253,8 @@ QList<BasePage*> ResourcePackDownloadDialog::getPages() if (APPLICATION->capabilities() & Application::SupportsFlame) pages.append(FlameResourcePackPage::create(this, *m_instance)); + m_selectedPage = dynamic_cast<ResourcePackResourcePage*>(pages[0]); + return pages; } @@ -278,6 +280,8 @@ QList<BasePage*> TexturePackDownloadDialog::getPages() if (APPLICATION->capabilities() & Application::SupportsFlame) pages.append(FlameTexturePackPage::create(this, *m_instance)); + m_selectedPage = dynamic_cast<TexturePackResourcePage*>(pages[0]); + return pages; } @@ -301,6 +305,8 @@ QList<BasePage*> ShaderPackDownloadDialog::getPages() pages.append(ModrinthShaderPackPage::create(this, *m_instance)); + m_selectedPage = dynamic_cast<ShaderPackResourcePage*>(pages[0]); + return pages; } |