drop Layouts::Manager::presetsPaths

pull/19/head
Michail Vourlakos 5 years ago
parent 1b4d13959b
commit edf06edeba

@ -79,8 +79,6 @@ Manager::~Manager()
void Manager::load()
{
m_presetsPaths.clear();
QDir layoutsDir(QDir::homePath() + "/.config/latte");
bool firstRun = !layoutsDir.exists();
@ -117,11 +115,6 @@ void Manager::load()
qDebug() << "Latte is loading its layouts...";
m_presetsPaths.append(m_corona->kPackage().filePath("preset1"));
m_presetsPaths.append(m_corona->kPackage().filePath("preset2"));
m_presetsPaths.append(m_corona->kPackage().filePath("preset3"));
m_presetsPaths.append(m_corona->kPackage().filePath("preset4"));
m_synchronizer->loadLayouts();
}
@ -170,11 +163,6 @@ void Manager::setMenuLayouts(QStringList layouts)
m_synchronizer->setMenuLayouts(layouts);
}
QStringList Manager::presetsPaths() const
{
return m_presetsPaths;
}
MemoryUsage::LayoutsMemory Manager::memoryUsage() const
{
return m_corona->universalSettings()->layoutsMemoryUsage();
@ -429,14 +417,5 @@ void Manager::showInfoWindow(QString info, int duration, QStringList activities)
}
}
//! it is used just in order to provide translations for the presets
void Manager::ghostForTranslatedPresets()
{
QString preset1 = i18n("Default");
QString preset2 = i18n("Plasma");
QString preset3 = i18n("Unity");
QString preset4 = i18n("Extended");
}
}
}

@ -93,7 +93,6 @@ public:
QStringList layouts() const;
QStringList menuLayouts() const;
QStringList presetsPaths() const;
QStringList storedSharedLayouts() const;
MemoryUsage::LayoutsMemory memoryUsage() const;
@ -136,17 +135,12 @@ private:
void cleanupOnStartup(QString path); //!remove deprecated or oldstyle config options
void clearUnloadedContainmentsFromLinkedFile(QStringList containmentsIds, bool bypassChecks = false);
//! it is used just in order to provide translations for the presets
void ghostForTranslatedPresets();
void importPreset(int presetNo, bool newInstanceIfPresent = false);
void loadLatteLayout(QString layoutPath);
void setMenuLayouts(QStringList layouts);
private:
QStringList m_presetsPaths;
QPointer<Latte::Settings::Dialog::SettingsDialog> m_latteSettingsDialog;
Latte::Corona *m_corona{nullptr};

Loading…
Cancel
Save