mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 17:10:45 +02:00
Merge pull request #13526 from wayne-chen/fixStillOnlySnap-case-15860
fixing still only snap in snap app
This commit is contained in:
commit
62ec693280
1 changed files with 9 additions and 7 deletions
|
@ -668,6 +668,7 @@ window.onload = function () {
|
|||
addImage(element, messageOptions.isLoggedIn, idx === 0 && messageOptions.canShare, idx === 1, false, false, false, true);
|
||||
});
|
||||
document.getElementById("p1").classList.add("processingGif");
|
||||
document.getElementById("snap-button").disabled = true;
|
||||
} else {
|
||||
var gifPath = message.image_data[0].localPath,
|
||||
p1img = document.getElementById('p1img');
|
||||
|
@ -677,14 +678,15 @@ window.onload = function () {
|
|||
shareForUrl("p1");
|
||||
appendShareBar("p1", messageOptions.isLoggedIn, messageOptions.canShare, true, false, false, messageOptions.canBlast);
|
||||
document.getElementById("p1").classList.remove("processingGif");
|
||||
document.getElementById("snap-button").disabled = false;
|
||||
}
|
||||
} else {
|
||||
imageCount = message.image_data.length;
|
||||
message.image_data.forEach(function (element) {
|
||||
addImage(element, messageOptions.isLoggedIn, messageOptions.canShare, false, false, false, false, true);
|
||||
});
|
||||
}
|
||||
document.getElementById("snap-button").disabled = false;
|
||||
}
|
||||
break;
|
||||
case 'captureSettings':
|
||||
handleCaptureSetting(message.setting);
|
||||
|
@ -724,11 +726,11 @@ function snapshotSettings() {
|
|||
}));
|
||||
}
|
||||
function takeSnapshot() {
|
||||
document.getElementById("snap-button").disabled = true;
|
||||
EventBridge.emitWebEvent(JSON.stringify({
|
||||
type: "snapshot",
|
||||
action: "takeSnapshot"
|
||||
}));
|
||||
document.getElementById("snap-button").disabled = true;
|
||||
}
|
||||
|
||||
function isPrintDisabled() {
|
||||
|
|
Loading…
Reference in a new issue