From 2d76f3588f8146220ac3c27ed543f1a13347cf61 Mon Sep 17 00:00:00 2001 From: Mm2PL Date: Wed, 1 Feb 2023 01:19:15 +0100 Subject: [PATCH] Use placeholder values for PluginMeta --- src/controllers/plugins/PluginController.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/controllers/plugins/PluginController.hpp b/src/controllers/plugins/PluginController.hpp index fa546ded8..dab89dd15 100644 --- a/src/controllers/plugins/PluginController.hpp +++ b/src/controllers/plugins/PluginController.hpp @@ -39,9 +39,10 @@ struct PluginMeta { explicit PluginMeta(const QJsonObject &obj) : name(obj.value("name").toString("A Plugin with no name")) - , description(obj.value("description").toString()) - , authors(obj.value("authors").toString()) - , homepage(obj.value("homepage").toString()) + , description(obj.value("description").toString("Nothing here")) + , authors( + obj.value("authors").toString("[please tell me who made this]")) + , homepage(obj.value("homepage").toString("[https://example.com]")) , license(obj.value("license").toString("[unknown]")) { @@ -54,7 +55,7 @@ struct PluginMeta { else { this->version = semver::version(0, 0, 0); - description.append("\nWarning: invalid version"); + description.append("\nWarning: invalid version. Use semver."); } for (const auto &t : obj.value("tags").toArray()) {