diff --git a/LunaHost/GUI/pluginmanager.cpp b/LunaHost/GUI/pluginmanager.cpp index 41ce4f1..705f928 100644 --- a/LunaHost/GUI/pluginmanager.cpp +++ b/LunaHost/GUI/pluginmanager.cpp @@ -66,7 +66,6 @@ Pluginmanager::Pluginmanager(LunaHost* _host):host(_host){ try { std::scoped_lock lock(OnNewSentenceSLock); - OnNewSentenceS[L"InternalClipBoard"]=GetProcAddress(GetModuleHandle(0),"OnNewSentence");//内部链接的剪贴板插件 std::vectorcollectQtplugs; for (auto i=0;iconfigs->pluginsnum();i++) { auto plg=host->configs->pluginsget(i); @@ -82,6 +81,9 @@ Pluginmanager::Pluginmanager(LunaHost* _host):host(_host){ } loadqtdlls(collectQtplugs); + OnNewSentenceS[L"InternalClipBoard"]=GetProcAddress(GetModuleHandle(0),"OnNewSentence");//内部链接的剪贴板插件 + + } catch (const std::exception& ex) { std::cerr << "Error: " << ex.what() << std::endl; }