diff options
author | flow <thiagodonato300@gmail.com> | 2022-03-03 04:02:22 -0300 |
---|---|---|
committer | flow <thiagodonato300@gmail.com> | 2022-03-03 04:02:22 -0300 |
commit | 9e443faba3fe8ef9b14fd466e9e98aaeaf68656e (patch) | |
tree | 07e588c9ac49784f348a1542950fccf699f4e882 /launcher | |
parent | f95cebaf06e30705d9980fa765189674f13113a7 (diff) | |
download | PrismLauncher-9e443faba3fe8ef9b14fd466e9e98aaeaf68656e.tar.gz PrismLauncher-9e443faba3fe8ef9b14fd466e9e98aaeaf68656e.tar.bz2 PrismLauncher-9e443faba3fe8ef9b14fd466e9e98aaeaf68656e.zip |
hack: hide 'Download Mods' button when not in the mods tab
Diffstat (limited to 'launcher')
-rw-r--r-- | launcher/ui/pages/instance/ModFolderPage.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/launcher/ui/pages/instance/ModFolderPage.cpp b/launcher/ui/pages/instance/ModFolderPage.cpp index 3baec1de..3becd1db 100644 --- a/launcher/ui/pages/instance/ModFolderPage.cpp +++ b/launcher/ui/pages/instance/ModFolderPage.cpp @@ -143,10 +143,17 @@ ModFolderPage::ModFolderPage( ui(new Ui::ModFolderPage) { ui->setupUi(this); + auto act = ui->actionDownload; if(id == "mods") { - auto act = ui->actionDownload; connect(act, &QAction::triggered, this, &ModFolderPage::on_actionInstall_mods_triggered); } + else{ + // HACK: Prevent the download button from showing in the shaders / resource packs tab + // This whole thing needs some cleaning up anyway, no next time we can do it properly... + act->setVisible(false); + act->setText(""); + act->setToolTip(""); + } ui->actionsToolbar->insertSpacer(ui->actionView_configs); m_inst = inst; |