Merge branch 'feat/fwspacm-plugin-packages' into release-1.6.0
This commit is contained in:
29 files changed
+2107
-1047
No files matched your search
+10
-2
@@ -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()));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user