Skip to content

Commit

Permalink
Entry Js PUBLISH by v3.20240130.1036
Browse files Browse the repository at this point in the history
  • Loading branch information
entrydev committed Jan 30, 2024
1 parent 590fbcb commit be113ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion dist/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -245845,7 +245845,8 @@ Entry.Playground = /*#__PURE__*/function () {
}, {
text: Lang.Workspace.context_duplicate,
callback: function callback() {
Entry.playground.addSound(sound, true, true);
var newSound = Entry.playground.object.getSound(sound.id);
Entry.playground.addSound(newSound, true, true);
}
}, {
text: Lang.Workspace.context_remove,
Expand Down Expand Up @@ -246226,6 +246227,9 @@ Entry.Playground = /*#__PURE__*/function () {
key: "setSound",
value: function setSound(sound) {
var objectSound = Entry.container.setSound(sound);
if (objectSound !== null && objectSound !== void 0 && objectSound.view) {
objectSound.view.sound = objectSound;
}
var soundLengthView = (0, _get2["default"])(objectSound, 'view.soundLengthView');
if (soundLengthView) {
soundLengthView.textContent = "".concat(objectSound.duration, " ").concat(Lang.General.second);
Expand Down
2 changes: 1 addition & 1 deletion dist/entry.min.js

Large diffs are not rendered by default.

0 comments on commit be113ad

Please sign in to comment.