diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-04-16 18:03:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-16 18:03:03 +0200 |
commit | a42d2afceee9f6ea0d209cfb03b178defff1ce60 (patch) | |
tree | f0c0dedd898dea025796abc0bce8b303b84e18b4 /launcher/ui/dialogs/ModDownloadDialog.cpp | |
parent | db7cb125518e85f555b8816442b2ce2db4648cd8 (diff) | |
parent | 8e9eca6a970bf098c1045658368dc66b39e438ed (diff) | |
download | PrismLauncher-a42d2afceee9f6ea0d209cfb03b178defff1ce60.tar.gz PrismLauncher-a42d2afceee9f6ea0d209cfb03b178defff1ce60.tar.bz2 PrismLauncher-a42d2afceee9f6ea0d209cfb03b178defff1ce60.zip |
Merge pull request #392 from flowln/mod_filter
Diffstat (limited to 'launcher/ui/dialogs/ModDownloadDialog.cpp')
-rw-r--r-- | launcher/ui/dialogs/ModDownloadDialog.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/launcher/ui/dialogs/ModDownloadDialog.cpp b/launcher/ui/dialogs/ModDownloadDialog.cpp index a53f93e8..d02ea476 100644 --- a/launcher/ui/dialogs/ModDownloadDialog.cpp +++ b/launcher/ui/dialogs/ModDownloadDialog.cpp @@ -22,7 +22,9 @@ ModDownloadDialog::ModDownloadDialog(const std::shared_ptr<ModFolderModel> &mods : QDialog(parent), mods(mods), m_instance(instance) { setObjectName(QStringLiteral("ModDownloadDialog")); - resize(400, 347); + + resize(std::max(0.5*parent->width(), 400.0), std::max(0.75*parent->height(), 400.0)); + m_verticalLayout = new QVBoxLayout(this); m_verticalLayout->setObjectName(QStringLiteral("verticalLayout")); @@ -80,7 +82,7 @@ void ModDownloadDialog::confirm() tr("Confirm mods to download") ); - for(auto task : keys){ + for(auto& task : keys){ confirm_dialog->appendMod(task, modTask.find(task).value()->getFilename()); } |