added comment about plugin confirmation GUI code

This commit is contained in:
csoler 2025-12-01 22:33:19 +01:00
parent 943e597291
commit 350a3da359

View file

@ -174,6 +174,9 @@ bool RsGUIEventManager::GUI_askForPassword(const std::string& title, const std::
bool RsGUIEventManager::GUI_askForPluginConfirmation(const std::string& plugin_file_name, const RsFileHash& plugin_file_hash, bool first_time)
{
// By default, when no information is known about plugins, just dont load them. They will be enabled from the GUI by the user.
// Note: the code below is not running in the Qt thread, which is likely to cause a crash. If needed, we should use
// the same mechanism than GUI_askForPassword. As far as testing goes, it seems that because there is no other window running
// at the time plugin confirmation is required, this is not a problem for Qt.
if(first_time)
return false ;