Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
danmar committed Jan 30, 2024
1 parent 520aa8d commit b6488c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,6 @@ void MainWindow::loadAddon(Settings &settings, const QString &filesDir, const QS
{
const QString addonFilePath = fromNativePath(ProjectFile::getAddonFilePath(filesDir, addon));

picojson::object obj;
if (addonFilePath.isEmpty()) {
// Addon not found => add data to addons and addonInfos so that fileNotFound error(s) are reported during analysis
settings.addons.emplace("file not found: " + addon.toStdString());
Expand All @@ -919,6 +918,7 @@ void MainWindow::loadAddon(Settings &settings, const QString &filesDir, const QS
return;
}

picojson::object obj;
obj["script"] = picojson::value(addonFilePath.toStdString());
if (!pythonCmd.isEmpty())
obj["python"] = picojson::value(pythonCmd.toStdString());
Expand Down

0 comments on commit b6488c6

Please sign in to comment.