From 8f8147c7591d8b6c88aebd01087eb64d0a77537c Mon Sep 17 00:00:00 2001 From: xz-dev <32761048+xz-dev@users.noreply.github.com> Date: Sat, 13 Mar 2021 20:30:02 +0800 Subject: [PATCH] fix: fix config not load --- CommandPlugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CommandPlugin.cpp b/CommandPlugin.cpp index e5afd4a..91c6fbe 100644 --- a/CommandPlugin.cpp +++ b/CommandPlugin.cpp @@ -3,8 +3,9 @@ #include "ui/CommandPluginSettings.hpp" #include "ui/GUIInterface.hpp" -bool CommandPlugin::InitializePlugin(const QString &, const QJsonObject &) +bool CommandPlugin::InitializePlugin(const QString &, const QJsonObject &conf) { + Qv2rayInterface::UpdateSettings(conf); CommandPluginInstance = this; eventHandler = std::make_shared(); guiInterface = new CommandGUIInterface();