@@ -990,12 +990,12 @@ void PluginInfoComponent::setDownloadURL(const String& url)
990
990
991
991
void PluginInfoComponent::run ()
992
992
{
993
- LOGD (" \n Downloading Plugin: " , pInfo.pluginName , " ... " );
994
993
995
994
// If a plugin has depencies outside its zip, download them
996
995
for (int i = 0 ; i < pInfo.dependencies .size (); i++)
997
996
{
998
997
setStatusMessage (" Downloading dependency: " + pInfo.dependencies [i]);
998
+ LOGD (" Downloading dependency: " , pInfo.dependencies [i], " ... " );
999
999
1000
1000
int retCode = downloadPlugin (pInfo.dependencies [i], pInfo.dependencyVersions [i], true );
1001
1001
@@ -1009,9 +1009,30 @@ void PluginInfoComponent::run()
1009
1009
LOGE (" Download Failed!!" );
1010
1010
return ;
1011
1011
}
1012
+ else if (retCode == ZIP_NOTFOUND)
1013
+ {
1014
+ AlertWindow::showMessageBoxAsync (AlertWindow::WarningIcon,
1015
+ " [Plugin Installer] " + pInfo.dependencies [i],
1016
+ " Could not find the ZIP file for " + pInfo.dependencies [i]
1017
+ + " . Please contact the developers." );
1018
+
1019
+ LOGE (" Download Failed!!" );
1020
+ return ;
1021
+ }
1022
+ else if (retCode == HTTP_ERR)
1023
+ {
1024
+ AlertWindow::showMessageBoxAsync (AlertWindow::WarningIcon,
1025
+ " [Plugin Installer] " + pInfo.dependencies [i],
1026
+ " HTTP request failed!!\n Please check your internet connection..." );
1027
+
1028
+ LOGE (" HTTP request failed!! Please check your internet connection..." );
1029
+ return ;
1030
+ }
1031
+
1012
1032
}
1013
1033
1014
1034
setStatusMessage (" Downloading " + pInfo.displayName + " ..." );
1035
+ LOGD (" Downloading Plugin: " , pInfo.pluginName , " ... " );
1015
1036
1016
1037
// download the plugin
1017
1038
int dlReturnCode = downloadPlugin (pInfo.pluginName , pInfo.selectedVersion , false );
@@ -1296,7 +1317,7 @@ bool PluginInfoComponent::uninstallPlugin(const String& plugin)
1296
1317
AccessClass::getProcessorList ()->fillItemList ();
1297
1318
AccessClass::getProcessorList ()->repaint ();
1298
1319
1299
- if (pInfo.type == " Record Engine " )
1320
+ if (pInfo.type == " RecordEngine " )
1300
1321
AccessClass::getControlPanel ()->updateRecordEngineList ();
1301
1322
1302
1323
uninstallButton.setVisible (false );
@@ -1320,7 +1341,7 @@ int PluginInfoComponent::downloadPlugin(const String& plugin, const String& vers
1320
1341
1321
1342
// Create input stream from the plugin's zip file URL
1322
1343
std::unique_ptr<InputStream> fileStream = fileUrl.createInputStream (URL::InputStreamOptions (URL::ParameterHandling::inAddress)
1323
- .withConnectionTimeoutMs (1000 )
1344
+ .withConnectionTimeoutMs (0 )
1324
1345
.withNumRedirectsToFollow (5 ));
1325
1346
1326
1347
// Could not retrieve data
@@ -1505,7 +1526,7 @@ int PluginInfoComponent::downloadPlugin(const String& plugin, const String& vers
1505
1526
AccessClass::getProcessorList ()->fillItemList ();
1506
1527
AccessClass::getProcessorList ()->repaint ();
1507
1528
1508
- if (pInfo.type == " Record Engine " )
1529
+ if (pInfo.type == " RecordEngine " )
1509
1530
AccessClass::getControlPanel ()->updateRecordEngineList ();
1510
1531
1511
1532
}
0 commit comments