From 86cb1ec962bf8ea18a6a9c09021ffdfeab8c7bcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Fri, 29 Mar 2024 15:12:04 +0800 Subject: [PATCH] Update pluginmanager.cpp --- LunaHost/GUI/pluginmanager.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/LunaHost/GUI/pluginmanager.cpp b/LunaHost/GUI/pluginmanager.cpp index eabf410..870d979 100644 --- a/LunaHost/GUI/pluginmanager.cpp +++ b/LunaHost/GUI/pluginmanager.cpp @@ -128,9 +128,10 @@ void Pluginmanager::loadqtdlls(std::vector&collectQtplugs){ } SetEnvironmentVariableW(L"PATH",envs.c_str()); - // auto modules=QtLoadLibrarys(collectQtplugs); - // if(modules.empty())return; - + #if 1 + auto modules=QtLoadLibrarys(collectQtplugs); + if(modules.empty())return; + #else auto QtLoadLibrary = loadqtloader(pluginpath); if(!QtLoadLibrary){ @@ -145,7 +146,7 @@ void Pluginmanager::loadqtdlls(std::vector&collectQtplugs){ } auto modules=QtLoadLibrary(saves.data(),collectQtplugs.size()); for(auto str:saves)delete str; - + #endif for(int i=0;i