Skip to content

Commit a4e6bc9

Browse files
committed
gui/mainwindow.cpp: added TODOs [skip ci]
1 parent 54978a1 commit a4e6bc9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gui/mainwindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ void MainWindow::loadAddon(Settings &settings, const QString &filesDir, const QS
909909
{
910910
QString addonFilePath = ProjectFile::getAddonFilePath(filesDir, addon);
911911
if (addonFilePath.isEmpty())
912-
return;
912+
return; // TODO: report an error
913913

914914
addonFilePath.replace(QChar('\\'), QChar('/'));
915915

@@ -934,7 +934,7 @@ void MainWindow::loadAddon(Settings &settings, const QString &filesDir, const QS
934934
std::string json_str = json.serialize();
935935

936936
AddonInfo addonInfo;
937-
addonInfo.getAddonInfo(json_str, settings.exename);
937+
addonInfo.getAddonInfo(json_str, settings.exename); // TODO: handle error
938938
settings.addonInfos.emplace_back(std::move(addonInfo));
939939

940940
settings.addons.emplace(std::move(json_str));

0 commit comments

Comments
 (0)