Merge branch 'feat/fwspacm-plugin-packages' into release-1.6.0

This commit is contained in:
BlackAngelTV committed 2026-09-28 22:08:56 +02:00
commit b6f51a76ff
29 files changed
+2107 -1047

No files matched your search

+10 -2
View File
@@ -1031,7 +1031,7 @@ QStringList MainWindow::installableDroppedFiles(const QMimeData* mimeData) const
// first, and a remote .flatpakref is better opened from a browser.
if (!url.isLocalFile()) continue;
const QString path = url.toLocalFile();
if (m_core->canInstallFile(path)) files << path;
if (m_core->canInstallFile(path) || m_core->isPluginPackage(path)) files << path;
}
return files;
}
@@ -1075,6 +1075,13 @@ void MainWindow::installLocalFiles(const QStringList& paths) {
QStringList files;
QStringList rejected;
for (const QString& path : paths) {
// A plugin package is installed by the core straight away: it needs no
// provider, no password and no queue, and the registry is reloaded when
// it lands (see AppCore::installPluginPackage).
if (m_core->isPluginPackage(path)) {
m_core->installPluginPackage(path);
continue;
}
if (m_core->canInstallFile(path)) files << path;
else rejected << path;
}
@@ -1084,7 +1091,8 @@ void MainWindow::installLocalFiles(const QStringList& paths) {
if (!rejected.isEmpty()) {
statusBar()->showMessage(
QStringLiteral("%1 : format non reconnu (PacManager installe les fichiers "
".flatpakref, .flatpakrepo et .flatpak).")
".flatpakref, .flatpakrepo, .flatpak et les paquets de plugin "
".fwspacm).")
.arg(QFileInfo(rejected.first()).fileName()));
}