mirror of
https://github.com/KDE/latte-dock.git
synced 2025-02-13 21:57:40 +03:00
fixes for import/export of MultipleLayouts etc...
This commit is contained in:
parent
f22e26fef3
commit
973cf1bd58
@ -331,7 +331,12 @@ bool Importer::exportFullConfiguration(QString file)
|
||||
}
|
||||
|
||||
archive.addLocalFile(QString(QDir::homePath() + "/.config/lattedockrc"), QStringLiteral("lattedockrc"));
|
||||
archive.addLocalDirectory(QString(QDir::homePath() + "/.config/latte"), QStringLiteral("latte"));
|
||||
|
||||
foreach (auto layoutName, availableLayouts()) {
|
||||
archive.addLocalFile(layoutFilePath(layoutName), QString("latte/" + layoutName + ".layout.latte"));
|
||||
}
|
||||
|
||||
//archive.addLocalDirectory(QString(QDir::homePath() + "/.config/latte"), QStringLiteral("latte"));
|
||||
|
||||
archive.close();
|
||||
|
||||
|
@ -386,7 +386,7 @@ void LatteConfigDialog::on_importButton_clicked()
|
||||
connect(fullBtn, &QPushButton::clicked
|
||||
, this, [ &, file](bool check) {
|
||||
//!NOTE: Restart latte for import the new configuration
|
||||
QProcess::startDetached(qGuiApp->applicationFilePath() + " --import \"" + file + "\"");
|
||||
QProcess::startDetached(qGuiApp->applicationFilePath() + " --import-full \"" + file + "\"");
|
||||
qGuiApp->exit();
|
||||
});
|
||||
} else if (version == Importer::ConfigVersion2) {
|
||||
@ -402,7 +402,7 @@ void LatteConfigDialog::on_importButton_clicked()
|
||||
if (result == QMessageBox::Yes) {
|
||||
//!NOTE: Restart latte for import the new configuration
|
||||
msg->deleteLater();
|
||||
QProcess::startDetached(qGuiApp->applicationFilePath() + " --import \"" + file + "\"");
|
||||
QProcess::startDetached(qGuiApp->applicationFilePath() + " --import-full \"" + file + "\"");
|
||||
qGuiApp->exit();
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user