mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Compare commits
4 commits
3eb4a144fc
...
596484f5a3
Author | SHA1 | Date | |
---|---|---|---|
596484f5a3 | |||
b37b6c401d | |||
98cae26c90 | |||
dac2ef3a9e |
|
@ -49,7 +49,7 @@ void PluginController::initialize(Settings &settings, const Paths &paths)
|
||||||
void PluginController::loadPlugins()
|
void PluginController::loadPlugins()
|
||||||
{
|
{
|
||||||
this->plugins_.clear();
|
this->plugins_.clear();
|
||||||
auto dir = QDir(this->paths->pluginsDirectory);
|
auto dir = QDir(this->paths.pluginsDirectory);
|
||||||
qCDebug(chatterinoLua) << "Loading plugins in" << dir.path();
|
qCDebug(chatterinoLua) << "Loading plugins in" << dir.path();
|
||||||
for (const auto &info :
|
for (const auto &info :
|
||||||
dir.entryInfoList(QDir::Dirs | QDir::NoDotAndDotDot))
|
dir.entryInfoList(QDir::Dirs | QDir::NoDotAndDotDot))
|
||||||
|
|
|
@ -34,11 +34,11 @@ namespace chatterino {
|
||||||
|
|
||||||
using namespace literals;
|
using namespace literals;
|
||||||
|
|
||||||
void registerNmManifest(Paths &paths, const QString &manifestFilename,
|
void registerNmManifest(const Paths &paths, const QString &manifestFilename,
|
||||||
const QString ®istryKeyName,
|
const QString ®istryKeyName,
|
||||||
const QJsonDocument &document);
|
const QJsonDocument &document);
|
||||||
|
|
||||||
void registerNmHost(Paths &paths)
|
void registerNmHost(const Paths &paths)
|
||||||
{
|
{
|
||||||
if (paths.isPortable())
|
if (paths.isPortable())
|
||||||
{
|
{
|
||||||
|
@ -80,7 +80,7 @@ void registerNmHost(Paths &paths)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void registerNmManifest(Paths &paths, const QString &manifestFilename,
|
void registerNmManifest(const Paths &paths, const QString &manifestFilename,
|
||||||
const QString ®istryKeyName,
|
const QString ®istryKeyName,
|
||||||
const QJsonDocument &document)
|
const QJsonDocument &document)
|
||||||
{
|
{
|
||||||
|
@ -99,7 +99,7 @@ void registerNmManifest(Paths &paths, const QString &manifestFilename,
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string &getNmQueueName(Paths &paths)
|
std::string &getNmQueueName(const Paths &paths)
|
||||||
{
|
{
|
||||||
static std::string name =
|
static std::string name =
|
||||||
"chatterino_gui" + paths.applicationFilePathHash.toStdString();
|
"chatterino_gui" + paths.applicationFilePathHash.toStdString();
|
||||||
|
|
|
@ -16,8 +16,8 @@ class Channel;
|
||||||
|
|
||||||
using ChannelPtr = std::shared_ptr<Channel>;
|
using ChannelPtr = std::shared_ptr<Channel>;
|
||||||
|
|
||||||
void registerNmHost(Paths &paths);
|
void registerNmHost(const Paths &paths);
|
||||||
std::string &getNmQueueName(Paths &paths);
|
std::string &getNmQueueName(const Paths &paths);
|
||||||
|
|
||||||
Atomic<std::optional<QString>> &nmIpcError();
|
Atomic<std::optional<QString>> &nmIpcError();
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,10 @@ namespace chatterino {
|
||||||
|
|
||||||
class Paths;
|
class Paths;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* To check for updates, use the `checkForUpdates` method.
|
||||||
|
* The class by itself does not start any automatic updates.
|
||||||
|
*/
|
||||||
class Updates
|
class Updates
|
||||||
{
|
{
|
||||||
const Paths &paths;
|
const Paths &paths;
|
||||||
|
|
|
@ -40,7 +40,7 @@ PluginsPage::PluginsPage()
|
||||||
auto *description =
|
auto *description =
|
||||||
new QLabel("You can load plugins by putting them into " +
|
new QLabel("You can load plugins by putting them into " +
|
||||||
formatRichNamedLink(
|
formatRichNamedLink(
|
||||||
"file:///" + getIApp()->getPaths()->pluginsDirectory,
|
"file:///" + getIApp()->getPaths().pluginsDirectory,
|
||||||
"the Plugins directory") +
|
"the Plugins directory") +
|
||||||
". Each one is a new directory.");
|
". Each one is a new directory.");
|
||||||
description->setOpenExternalLinks(true);
|
description->setOpenExternalLinks(true);
|
||||||
|
|
Loading…
Reference in a new issue