diff options
author | TheKodeToad <TheKodeToad@proton.me> | 2023-07-01 17:20:43 +0100 |
---|---|---|
committer | TheKodeToad <TheKodeToad@proton.me> | 2023-07-01 19:39:04 +0100 |
commit | 284e374ae858d6784b6df48c83534dc6dc973747 (patch) | |
tree | 3d97e2269fa4c39cdbaf93bd8ae88fc4096e637a /launcher/ui/dialogs/InstallLoaderDialog.cpp | |
parent | 4cdf669154327b764ea2f7371e3d29f71d06daa7 (diff) | |
download | PrismLauncher-284e374ae858d6784b6df48c83534dc6dc973747.tar.gz PrismLauncher-284e374ae858d6784b6df48c83534dc6dc973747.tar.bz2 PrismLauncher-284e374ae858d6784b6df48c83534dc6dc973747.zip |
Nop
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher/ui/dialogs/InstallLoaderDialog.cpp')
-rw-r--r-- | launcher/ui/dialogs/InstallLoaderDialog.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/launcher/ui/dialogs/InstallLoaderDialog.cpp b/launcher/ui/dialogs/InstallLoaderDialog.cpp index 74b3ea92..31307ee1 100644 --- a/launcher/ui/dialogs/InstallLoaderDialog.cpp +++ b/launcher/ui/dialogs/InstallLoaderDialog.cpp @@ -108,10 +108,6 @@ InstallLoaderDialog::InstallLoaderDialog(std::shared_ptr<PackProfile> profile, c setWindowTitle(dialogTitle()); resize(650, 400); - connect(m_container, &PageContainer::selectedPageChanged, this, - [this](BasePage* previous, BasePage* selected) { updateAcceptButton(selected); }); - updateAcceptButton(m_container->selectedPage()); - pageCast(m_container->selectedPage())->selectSearch(); for (BasePage* page : m_container->getPages()) if (page->id() == uid) @@ -136,12 +132,6 @@ QString InstallLoaderDialog::dialogTitle() return tr("Install Loader"); } -void InstallLoaderDialog::updateAcceptButton(const BasePage* page) -{ - auto installed = !m_profile->getComponentVersion(page->id()).isNull(); - m_buttons->button(QDialogButtonBox::Ok)->setText(installed ? tr("&Update") : tr("&Install")); -} - void InstallLoaderDialog::done(int result) { if (result == Accepted) { |