diff options
author | phit <2097483+phit@users.noreply.github.com> | 2021-06-19 16:19:39 +0200 |
---|---|---|
committer | phit <2097483+phit@users.noreply.github.com> | 2021-06-20 01:03:17 +0200 |
commit | f7c144c3932a18e1cd96e1ad7505e53ea706a47d (patch) | |
tree | 41db6a9b877d269b941c07ba738dba5bf92051e6 /application/pages/modplatform/flame | |
parent | 5f8d07c0092b6cc44f81104a3d7f9e7e49d9df5d (diff) | |
download | PrismLauncher-f7c144c3932a18e1cd96e1ad7505e53ea706a47d.tar.gz PrismLauncher-f7c144c3932a18e1cd96e1ad7505e53ea706a47d.tar.bz2 PrismLauncher-f7c144c3932a18e1cd96e1ad7505e53ea706a47d.zip |
GH-3720 Fix UI inconsistencies with Modplatforms
Fixes GH-3118
Fixes GH-3720
Fixes GH-3731
Icons and Ok button state will now switch consistently when moving
between tabs. ATLaunchers packlist is now no longer redownloaded
each time you open its Tab. All lists are striped now. And all
search and filter fields now have a placeholder text.
Diffstat (limited to 'application/pages/modplatform/flame')
-rw-r--r-- | application/pages/modplatform/flame/FlamePage.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/application/pages/modplatform/flame/FlamePage.cpp b/application/pages/modplatform/flame/FlamePage.cpp index 171d8d65..2dd58e16 100644 --- a/application/pages/modplatform/flame/FlamePage.cpp +++ b/application/pages/modplatform/flame/FlamePage.cpp @@ -18,6 +18,8 @@ FlamePage::FlamePage(NewInstanceDialog* dialog, QWidget *parent) ui->packView->setModel(listModel); ui->versionSelectionBox->setMaxVisibleItems(10); + // fix height for themes that dont respect max visible like fusion + ui->versionSelectionBox->setStyleSheet("combobox-popup: 0;"); // index is used to set the sorting with the curseforge api ui->sortByBox->addItem(tr("Sort by featured")); @@ -157,6 +159,12 @@ void FlamePage::suggestCurrent() return; } + if (selectedVersion.isEmpty()) + { + dialog->setSuggestedPack(); + return; + } + dialog->setSuggestedPack(current.name, new InstanceImportTask(selectedVersion)); QString editedLogoName; editedLogoName = "curseforge_" + current.logoName.section(".", 0, 0); |