Fix some more autobake weirdness.

Input passed in the URL is now set on load.
Added a new progress bar.
This commit is contained in:
j433866 2019-05-02 15:44:31 +01:00
parent 8e9717906f
commit e9d60f73f4
5 changed files with 16 additions and 10 deletions

View file

@ -198,7 +198,10 @@ class App {
* @param {boolean} [silent=false] - Suppress statechange event
*/
setInput(input, silent=false) {
this.manager.input.set(input, silent);
// Assume that there aren't any inputs
let inputNum = this.manager.input.getActiveTab();
if (inputNum === -1) inputNum = 1;
this.manager.input.updateInputValue(inputNum, input);
}
@ -446,7 +449,7 @@ class App {
if (this.uriParams.input) {
try {
const inputData = fromBase64(this.uriParams.input);
this.setInput(inputData, true);
this.setInput(inputData, false);
} catch (err) {}
}