diff --git a/debian/changelog b/debian/changelog index 242ed889..0a9f1607 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +mx-packageinstaller (24.11.03) mx; urgency=medium + + * Fix displaying tab when rejecting flatpak installation + + -- Adrian Wed, 13 Nov 2024 18:31:10 -0500 + mx-packageinstaller (24.11.02) mx; urgency=medium * Update flatpaks only if manually refreshed (list might show blank if flatpaks diff --git a/mainwindow.cpp b/mainwindow.cpp index dc2b8a0f..0f1724f8 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1733,13 +1733,14 @@ bool MainWindow::downloadPackageList(bool force_download) return true; } -void MainWindow::enableTabs(bool enable) const +void MainWindow::enableTabs(bool enable) { for (int tab = 0; tab < ui->tabWidget->count() - 1; ++tab) { // Enable all except last (Console) ui->tabWidget->setTabEnabled(tab, enable); } ui->tabWidget->setTabVisible(Tab::Test, QFile::exists("/etc/apt/sources.list.d/mx.list")); ui->tabWidget->setTabVisible(Tab::Flatpak, arch != "i386"); + setCursor(QCursor(Qt::ArrowCursor)); } void MainWindow::hideColumns() const @@ -2735,6 +2736,7 @@ void MainWindow::handleFlatpakTab(const QString &search_str) tr("Flatpak is not currently installed.\nOK to go ahead and install it?")); if (ans == QMessageBox::No) { ui->tabWidget->setCurrentIndex(Tab::Popular); + enableTabs(true); return; } installFlatpak(); diff --git a/mainwindow.h b/mainwindow.h index 047a11fb..b12c4330 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -279,7 +279,7 @@ private slots: void displayPackages(); void displayPopularApps() const; void displayWarning(const QString &repo); - void enableTabs(bool enable) const; + void enableTabs(bool enable); void finalizeFlatpakDisplay(); void formatFlatpakTree() const; void handleEnabledReposTab(const QString &search_str);