mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-02-17 16:20:13 +08:00
Fix plugin loader issue
Fix multi select group API issue
This commit is contained in:
parent
3ed74ef095
commit
88a1dbafe2
@ -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', {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user