aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/instance
diff options
context:
space:
mode:
authorTheKodeToad <TheKodeToad@proton.me>2023-06-25 10:36:54 +0100
committerTheKodeToad <TheKodeToad@proton.me>2023-06-25 10:36:54 +0100
commit603ed220151345f44a43e14538ea449bae843958 (patch)
treeb19f80912b445e6c0850e79f31237bfbd94edea3 /launcher/ui/pages/instance
parent5eb71fc6a96690e3d9a658f383b0937446ec3f9e (diff)
downloadPrismLauncher-603ed220151345f44a43e14538ea449bae843958.tar.gz
PrismLauncher-603ed220151345f44a43e14538ea449bae843958.tar.bz2
PrismLauncher-603ed220151345f44a43e14538ea449bae843958.zip
Replace accidental usages of QAbstractButton::pressed
This signal is not usually what you want, and creates an inconsistent experience. Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher/ui/pages/instance')
-rw-r--r--launcher/ui/pages/instance/ManagedPackPage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/ui/pages/instance/ManagedPackPage.cpp b/launcher/ui/pages/instance/ManagedPackPage.cpp
index e0a7314f..d89c5bfc 100644
--- a/launcher/ui/pages/instance/ManagedPackPage.cpp
+++ b/launcher/ui/pages/instance/ManagedPackPage.cpp
@@ -205,7 +205,7 @@ ModrinthManagedPackPage::ModrinthManagedPackPage(BaseInstance* inst, InstanceWin
{
Q_ASSERT(inst->isManagedPack());
connect(ui->versionsComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(suggestVersion()));
- connect(ui->updateButton, &QPushButton::pressed, this, &ModrinthManagedPackPage::update);
+ connect(ui->updateButton, &QPushButton::clicked, this, &ModrinthManagedPackPage::update);
}
// MODRINTH
@@ -332,7 +332,7 @@ FlameManagedPackPage::FlameManagedPackPage(BaseInstance* inst, InstanceWindow* i
{
Q_ASSERT(inst->isManagedPack());
connect(ui->versionsComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(suggestVersion()));
- connect(ui->updateButton, &QPushButton::pressed, this, &FlameManagedPackPage::update);
+ connect(ui->updateButton, &QPushButton::clicked, this, &FlameManagedPackPage::update);
}
void FlameManagedPackPage::parseManagedPack()