mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-28 18:50:40 +03:00
fix creation of Alternative Layout
This commit is contained in:
parent
21a51ba4b3
commit
fc0e0f2d50
@ -225,7 +225,7 @@ QString LayoutManager::newLayout(QString layoutName, QString preset)
|
||||
QFile(m_corona->kPackage().filePath("preset1")).copy(newLayoutPath);
|
||||
}
|
||||
|
||||
return layoutName;
|
||||
return newLayoutPath;
|
||||
}
|
||||
|
||||
void LayoutManager::showWidgetsExplorer()
|
||||
|
@ -28,6 +28,8 @@ namespace Latte {
|
||||
LayoutSettings::LayoutSettings(QObject *parent, QString layoutFile, QString layoutName)
|
||||
: QObject(parent)
|
||||
{
|
||||
qDebug() << "Layout file to create object: " << layoutFile;
|
||||
|
||||
if (QFile(layoutFile).exists()) {
|
||||
if (layoutName.isEmpty()) {
|
||||
int lastSlash = layoutFile.lastIndexOf("/");
|
||||
@ -87,6 +89,8 @@ void LayoutSettings::setName(QString name)
|
||||
return;
|
||||
}
|
||||
|
||||
qDebug() << "Layout name:" << name;
|
||||
|
||||
m_layoutName = name;
|
||||
|
||||
emit nameChanged();
|
||||
@ -104,6 +108,8 @@ void LayoutSettings::setFile(QString file)
|
||||
return;
|
||||
}
|
||||
|
||||
qDebug() << "Layout file:" << file;
|
||||
|
||||
m_layoutFile = file;
|
||||
emit fileChanged();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user