From 20424a7ef7b7dcdbe593eab893e71b89f39d0d84 Mon Sep 17 00:00:00 2001 From: bluegreenmagick Date: Fri, 27 Aug 2021 21:49:55 +0900 Subject: [PATCH] Fix bug when add-on package string is "" which deleted the entire add-on folder --- qt/aqt/addons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/addons.py b/qt/aqt/addons.py index f3cc4435a..bede5b221 100644 --- a/qt/aqt/addons.py +++ b/qt/aqt/addons.py @@ -157,7 +157,7 @@ class AddonManager: "type": "object", "properties": { # the name of the folder - "package": {"type": "string", "meta": False}, + "package": {"type": "string", "minLength": 1, "meta": False}, # the displayed name to the user "name": {"type": "string", "meta": True}, # the time the add-on was last modified