Refresh user dialog JSON tab

This commit is contained in:
Natsumi
2025-04-14 19:28:05 +10:00
parent df96ef29ac
commit 9241a70b34

View File

@@ -8501,6 +8501,18 @@ console.log(`isLinux: ${LINUX}`);
}
});
API.$on('USER', function (args) {
// refresh user dialog JSON tab
if (
!$app.userDialog.visible ||
$app.userDialog.id !== args.ref.id ||
$app.$refs.userDialogTabs?.currentName !== '5'
) {
return;
}
$app.refreshUserDialogTreeData();
});
API.$on('WORLD', function (args) {
var D = $app.userDialog;
if (D.visible === false || D.$location.worldId !== args.ref.id) {