Skip to content

Commit 745cb16

Browse files
committed
Update RecordEngine list after installing plugin via Plugin Installer
Fix wrong error codes
1 parent a514893 commit 745cb16

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Source/UI/PluginInstaller.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "../AccessClass.h"
2929
#include "../Processors/PluginManager/PluginManager.h"
3030
#include "ProcessorList.h"
31+
#include "ControlPanel.h"
3132
//-----------------------------------------------------------------------
3233

3334
static inline File getPluginsLocationDirectory() {
@@ -1134,14 +1135,14 @@ int PluginInfoComponent::downloadPlugin(const String& plugin, const String& vers
11341135
}
11351136

11361137
// Uncompress the downloaded plugin's zip file
1137-
Result rs = pluginZip.uncompressTo(pluginsPath);
1138+
Result rs = pluginZip.uncompressTo(pluginsPath, true);
11381139

11391140
pluginFile.deleteFile(); // delete zip after uncompressing
11401141

11411142
if (rs.failed())
11421143
{
11431144
std::cout << "Uncompressing plugin zip file failed!!" << std::endl;
1144-
return 3;
1145+
return 2;
11451146
}
11461147

11471148
// if the plugin is not a dependency, load the plugin and show it in processor list
@@ -1156,6 +1157,8 @@ int PluginInfoComponent::downloadPlugin(const String& plugin, const String& vers
11561157

11571158
AccessClass::getProcessorList()->fillItemList();
11581159
AccessClass::getProcessorList()->repaint();
1160+
1161+
AccessClass::getControlPanel()->updateRecordEngineList();
11591162

11601163
return 1;
11611164
}

0 commit comments

Comments
 (0)