feat(plugin): support generic addon plugins and build Flatpak by default

The Plugins page replaces the Providers tab and lists every plugin alike:
package-manager providers and generic C++ addons, which can be any extension
(UI tweak, helper, ...) via IPlugin (onLoad/onUnload/onUiReady) exported with
the new FWS_ADDON_PLUGIN macro. Flatpak now ships as a plugin built by
default (FWS_BUILD_FLATPAK_PLUGIN=ON), so a plain build is Flatpak-enabled.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
BlackAngelTV committed 2026-09-10 18:49:46 +02:00
1 parent 3fa306c815
commit 8658855cca
12 files changed
+535 -250

No files matched your search

+12 -12
View File
@@ -107,10 +107,10 @@ private slots:
void onHistoryFilterChanged();
void onInstalledFilterChanged(const QString& text);
void onRecentActivityClicked(QListWidgetItem* item);
void onProviderTableSelected(int row);
void onToggleProvider();
void onRescanProviders();
void onInstallProviderTool();
void onPluginTableSelected(int row);
void onTogglePlugin();
void onRescanPlugins();
void onInstallPluginTool();
void onCheckForUpdates();
void onUpdateCheckFinished(bool hasUpdate, const QString& latestVersion,
const QString& errorMessage);
@@ -142,13 +142,13 @@ private:
void setupBrowsePage();
void setupHistoryPage();
void setupLogsPage();
void setupProvidersPage();
void setupPluginsPage();
void setupMenuBar();
void updatePageTitle();
void updateStatusBar();
void refreshDashboard();
void refreshRecentActivity();
void refreshProvidersTable();
void refreshPluginsTable();
void updatePackageInfo(const PackageInfo& pkg);
void resetDetailsPanel();
void setBrowseMode(BrowseMode mode);
@@ -218,12 +218,12 @@ private:
// Logs page
QTextEdit* m_logsText = nullptr;
// Providers page
QTableWidget* m_providerTable = nullptr;
QPushButton* m_providerToggleButton = nullptr;
QPushButton* m_providerInstallButton = nullptr;
QLabel* m_providerDescription = nullptr;
std::string m_selectedProviderId;
// Plugins page
QTableWidget* m_pluginTable = nullptr;
QPushButton* m_pluginToggleButton = nullptr;
QPushButton* m_pluginInstallButton = nullptr;
QLabel* m_pluginDescription = nullptr;
std::string m_selectedPluginId;
// Backend
PacmanManager* m_pacman = nullptr; // non-owning, used for sudo credentials/logs