mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +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:
parent
c8cede5db6
commit
da53d20287
|
@ -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/"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ void GM_Manager::downloadScript(const QUrl &url)
|
|||
});
|
||||
}
|
||||
|
||||
QString GM_Manager::settinsPath() const
|
||||
QString GM_Manager::settingsPath() const
|
||||
{
|
||||
return m_settingsPath;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user