Skip to content

Commit cabc0b3

Browse files
committed
Fix dependency overwrite error in Plugin Installer on Windows
1 parent 031254f commit cabc0b3

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

Source/UI/PluginInstaller.cpp

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,8 +1168,17 @@ int PluginInfoComponent::downloadPlugin(const String& plugin, const String& vers
11681168

11691169
if (rs.failed())
11701170
{
1171-
std::cout << rs.getErrorMessage() << std::endl;
1172-
return 2;
1171+
String errorMsg = rs.getErrorMessage();
1172+
1173+
if(errorMsg.containsIgnoreCase("Failed to write to target file") && isDependency)
1174+
{
1175+
std::cout << "Dependency already installed..." << std::endl;
1176+
}
1177+
else
1178+
{
1179+
std::cout << rs.getErrorMessage() << std::endl;
1180+
return 2;
1181+
}
11731182
}
11741183

11751184
// if the plugin is not a dependency, load the plugin and show it in processor list

0 commit comments

Comments
 (0)