mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Change setting names
This commit is contained in:
parent
96613690a9
commit
cd919b01d5
3 changed files with 6 additions and 6 deletions
|
@ -25,7 +25,7 @@ void PluginController::initialize(Settings &settings, Paths &paths)
|
|||
(void)paths;
|
||||
|
||||
// actuallyInitialize will be called by this connection
|
||||
settings.enableAnyPlugins.connect([this](bool enabled) {
|
||||
settings.pluginSupportEnabled.connect([this](bool enabled) {
|
||||
if (enabled)
|
||||
{
|
||||
this->actuallyInitialize();
|
||||
|
@ -41,7 +41,7 @@ void PluginController::initialize(Settings &settings, Paths &paths)
|
|||
// this function exists to allow for connecting to enableAnyPlugins option
|
||||
void PluginController::actuallyInitialize()
|
||||
{
|
||||
if (!getSettings()->enableAnyPlugins)
|
||||
if (!getSettings()->pluginSupportEnabled)
|
||||
{
|
||||
qCDebug(chatterinoLua)
|
||||
<< "Loading plugins disabled via Setting, skipping";
|
||||
|
@ -292,7 +292,7 @@ QString PluginController::tryExecPluginCommand(const QString &commandName,
|
|||
|
||||
bool PluginController::isEnabled(const QString &codename)
|
||||
{
|
||||
if (!getSettings()->enableAnyPlugins)
|
||||
if (!getSettings()->pluginSupportEnabled)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -527,9 +527,9 @@ public:
|
|||
{"d", 1},
|
||||
{"w", 1}}};
|
||||
|
||||
BoolSetting enableAnyPlugins = {"/plugins/load", false};
|
||||
BoolSetting pluginSupportEnabled = {"/plugins/supportEnabled", false};
|
||||
ChatterinoSetting<std::vector<QString>> enabledPlugins = {
|
||||
"/plugins/enabled", {}};
|
||||
"/plugins/enabledIds", {}};
|
||||
|
||||
private:
|
||||
void updateModerationActions();
|
||||
|
|
|
@ -47,7 +47,7 @@ PluginsPage::PluginsPage()
|
|||
groupLayout->addRow(description);
|
||||
|
||||
auto *box = this->createCheckBox("Enable plugins",
|
||||
getSettings()->enableAnyPlugins);
|
||||
getSettings()->pluginSupportEnabled);
|
||||
QObject::connect(box, &QCheckBox::released, [this]() {
|
||||
this->rebuildContent();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue