diff options
author | timoreo <timo.oreo34@gmail.com> | 2022-01-28 19:32:42 +0100 |
---|---|---|
committer | timoreo <timo.oreo34@gmail.com> | 2022-01-28 19:32:42 +0100 |
commit | efc44c56a62def0242353dde9c84452690209465 (patch) | |
tree | 515eefa1f21f83ff92070a42c6399269aa9ffddd /launcher/ui/pages/instance/ModFolderPage.cpp | |
parent | 8b790a6dd94a7b779b72595f1e1567eda9877e86 (diff) | |
download | PrismLauncher-efc44c56a62def0242353dde9c84452690209465.tar.gz PrismLauncher-efc44c56a62def0242353dde9c84452690209465.tar.bz2 PrismLauncher-efc44c56a62def0242353dde9c84452690209465.zip |
Fix button being present in other pages
Diffstat (limited to 'launcher/ui/pages/instance/ModFolderPage.cpp')
-rw-r--r-- | launcher/ui/pages/instance/ModFolderPage.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/launcher/ui/pages/instance/ModFolderPage.cpp b/launcher/ui/pages/instance/ModFolderPage.cpp index 09b199fb..494d32f0 100644 --- a/launcher/ui/pages/instance/ModFolderPage.cpp +++ b/launcher/ui/pages/instance/ModFolderPage.cpp @@ -143,6 +143,11 @@ ModFolderPage::ModFolderPage( ui(new Ui::ModFolderPage) { ui->setupUi(this); + if(id == "mods") { + auto act = new QAction(tr("Install Mods"), this); + ui->actionsToolbar->insertActionBefore(ui->actionView_configs,act); + connect(act, &QAction::triggered, this, &ModFolderPage::on_actionInstall_mods_triggered); + } ui->actionsToolbar->insertSpacer(ui->actionView_configs); m_inst = inst; |