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 | |
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')
-rw-r--r-- | launcher/ui/pages/instance/ModFolderPage.cpp | 5 | ||||
-rw-r--r-- | launcher/ui/pages/instance/ModFolderPage.ui | 9 |
2 files changed, 5 insertions, 9 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; diff --git a/launcher/ui/pages/instance/ModFolderPage.ui b/launcher/ui/pages/instance/ModFolderPage.ui index b5b4c9b2..0fb51e84 100644 --- a/launcher/ui/pages/instance/ModFolderPage.ui +++ b/launcher/ui/pages/instance/ModFolderPage.ui @@ -88,7 +88,6 @@ <addaction name="actionRemove"/> <addaction name="actionEnable"/> <addaction name="actionDisable"/> - <addaction name="actionInstall_mods"/> <addaction name="actionView_configs"/> <addaction name="actionView_Folder"/> </widget> @@ -137,14 +136,6 @@ <string>View &Folder</string> </property> </action> - <action name="actionInstall_mods"> - <property name="text"> - <string>Install mods</string> - </property> - <property name="toolTip"> - <string>Install mods from Modrinth or Curseforge</string> - </property> - </action> </widget> <customwidgets> <customwidget> |