Fix plugin loader issue

Fix multi select group API issue
This commit is contained in:
JannisX11 2024-12-20 12:47:35 +01:00
parent 3ed74ef095
commit 88a1dbafe2
2 changed files with 6 additions and 2 deletions

View File

@ -532,7 +532,11 @@ class Group extends OutlinerNode {
},
set(group) {
console.warn('"Group.selected" will be an array in the future!');
Project.selected_groups.replace([groups]);
if (group instanceof Group) {
Project.selected_groups.replace([group]);
} else {
Project.selected_groups.empty();
}
}
})
Object.defineProperty(Group, 'first_selected', {

View File

@ -405,7 +405,7 @@ class Plugin {
Plugins.sort()
// Save
if (isApp) {
await new Promise((resolve) => {
await new Promise((resolve, reject) => {
let file = originalFs.createWriteStream(Plugins.path+this.id+'.js')
https.get(url, (response) => {
response.pipe(file);