mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-22 08:13:52 +02:00
Add a regenerate impostor button (#1057)
* Refresh the avatar dialog when impostor is deleted * Adds a regenerate impostor button This feature adds a button to regenerate an impostor, to save a few clicks * Reload dialog after creating the impostor again to add a bit of delay for reloading * Changed the icon to the refresh icon
This commit is contained in:
@@ -12227,6 +12227,7 @@ speechSynthesis.getVoices();
|
||||
message: 'Imposter deleted',
|
||||
type: 'success'
|
||||
});
|
||||
this.showAvatarDialog(D.id);
|
||||
return args;
|
||||
});
|
||||
break;
|
||||
@@ -12241,6 +12242,21 @@ speechSynthesis.getVoices();
|
||||
return args;
|
||||
});
|
||||
break;
|
||||
case 'Regenerate Imposter':
|
||||
API.deleteImposter({
|
||||
avatarId: D.id
|
||||
}).then((args) => {return args;});
|
||||
API.createImposter({
|
||||
avatarId: D.id
|
||||
}).then((args) => {
|
||||
this.$message({
|
||||
message: 'Imposter deleted and queued for creation',
|
||||
type: 'success'
|
||||
});
|
||||
this.showAvatarDialog(D.id);
|
||||
return args;
|
||||
});
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user