mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-27 14:50:21 +03:00
create latte dir if missing when loading presets
--this is critical because it does not open Latte at first run. The fix is just to make sure that "latte" directory will be created in case there isnt already BUG: 404762
This commit is contained in:
parent
adc5c8d3cd
commit
7283e2698d
@ -1075,6 +1075,12 @@ void LayoutManager::importPresets(bool includeDefault)
|
||||
|
||||
void LayoutManager::importPreset(int presetNo, bool newInstanceIfPresent)
|
||||
{
|
||||
QDir configDir(QDir::homePath() + "/.config");
|
||||
|
||||
if (!QDir(configDir.absolutePath() + "/latte").exists()) {
|
||||
configDir.mkdir("latte");
|
||||
}
|
||||
|
||||
QByteArray presetNameOrig = QString("preset" + QString::number(presetNo)).toUtf8();
|
||||
QString presetPath = m_corona->kPackage().filePath(presetNameOrig);
|
||||
QString presetName = Layout::layoutName(presetPath);
|
||||
|
Loading…
x
Reference in New Issue
Block a user