1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

fixed settings spelling in gm_manager

Reviewers: drosca

Reviewed By: drosca

Subscribers: SGOrava, falkon

Tags: #falkon

Differential Revision: https://phabricator.kde.org/D18327
This commit is contained in:
Anmol Gautam 2019-01-17 23:58:59 +05:30
parent c8cede5db6
commit da53d20287
3 changed files with 5 additions and 5 deletions

View File

@ -111,7 +111,7 @@ void GM_Downloader::requireDownloaded()
return;
}
QSettings settings(m_manager->settinsPath() + QL1S("/greasemonkey/requires/requires.ini"), QSettings::IniFormat);
QSettings settings(m_manager->settingsPath() + QL1S("/greasemonkey/requires/requires.ini"), QSettings::IniFormat);
settings.beginGroup("Files");
if (m_fileName.isEmpty()) {
@ -123,11 +123,11 @@ void GM_Downloader::requireDownloaded()
} else if (!name.endsWith(QL1S(".js"))) {
name.append(QSL(".js"));
}
const QString filePath = m_manager->settinsPath() + QL1S("/greasemonkey/requires/") + name;
const QString filePath = m_manager->settingsPath() + QL1S("/greasemonkey/requires/") + name;
m_fileName = QzTools::ensureUniqueFilename(filePath, "%1");
}
if (!QFileInfo(m_fileName).isAbsolute()) {
m_fileName.prepend(m_manager->settinsPath() + QL1S("/greasemonkey/requires/"));
m_fileName.prepend(m_manager->settingsPath() + QL1S("/greasemonkey/requires/"));
}
}

View File

@ -85,7 +85,7 @@ void GM_Manager::downloadScript(const QUrl &url)
});
}
QString GM_Manager::settinsPath() const
QString GM_Manager::settingsPath() const
{
return m_settingsPath;
}

View File

@ -42,7 +42,7 @@ public:
void showSettings(QWidget* parent);
void downloadScript(const QUrl &url);
QString settinsPath() const;
QString settingsPath() const;
QString scriptsDirectory() const;
QString requireScripts(const QStringList &urlList) const;
QString bootstrapScript() const;