Fix being unable to go to tab 1
This commit is contained in:
parent
0804647441
commit
9690ccd8a0
@ -266,7 +266,7 @@ class InputWaiter {
|
|||||||
/**
|
/**
|
||||||
* Handler for messages sent back by LoaderWorkers
|
* Handler for messages sent back by LoaderWorkers
|
||||||
*
|
*
|
||||||
* @param {MessageEvent} else
|
* @param {MessageEvent} e
|
||||||
*/
|
*/
|
||||||
handleLoaderMessage(e) {
|
handleLoaderMessage(e) {
|
||||||
const r = e.data;
|
const r = e.data;
|
||||||
@ -1022,7 +1022,7 @@ class InputWaiter {
|
|||||||
*/
|
*/
|
||||||
goToTab() {
|
goToTab() {
|
||||||
const tabNum = parseInt(window.prompt("Enter tab number:", this.getActiveTab().toString()), 10);
|
const tabNum = parseInt(window.prompt("Enter tab number:", this.getActiveTab().toString()), 10);
|
||||||
if (this.getInputIndex(tabNum)) {
|
if (this.getInputIndex(tabNum) >= 0) {
|
||||||
this.changeTab(tabNum, this.app.options.syncTabs);
|
this.changeTab(tabNum, this.app.options.syncTabs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -544,7 +544,7 @@ class OutputWaiter {
|
|||||||
*/
|
*/
|
||||||
goToTab() {
|
goToTab() {
|
||||||
const tabNum = parseInt(window.prompt("Enter tab number:", this.getActiveTab().toString()), 10);
|
const tabNum = parseInt(window.prompt("Enter tab number:", this.getActiveTab().toString()), 10);
|
||||||
if (this.getOutputIndex(tabNum)) {
|
if (this.getOutputIndex(tabNum) >= 0) {
|
||||||
this.changeTab(tabNum, this.app.options.syncTabs);
|
this.changeTab(tabNum, this.app.options.syncTabs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -256,7 +256,7 @@
|
|||||||
<div class="io-info" id="input-info"></div>
|
<div class="io-info" id="input-info"></div>
|
||||||
<div class="io-info" id="input-selection-info"></div>
|
<div class="io-info" id="input-selection-info"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="input-tabs-wrapper" style="display: none;">
|
<div id="input-tabs-wrapper" style="display: none;" class="no-select">
|
||||||
<span id="btn-previous-input-tab" class="input-tab-buttons">
|
<span id="btn-previous-input-tab" class="input-tab-buttons">
|
||||||
<
|
<
|
||||||
</span>
|
</span>
|
||||||
@ -326,7 +326,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div id="output-wrapper">
|
<div id="output-wrapper">
|
||||||
<div id="output-tabs-wrapper" style="display: none">
|
<div id="output-tabs-wrapper" style="display: none" class="no-select">
|
||||||
<span id="btn-previous-output-tab" class="output-tab-buttons">
|
<span id="btn-previous-output-tab" class="output-tab-buttons">
|
||||||
<
|
<
|
||||||
</span>
|
</span>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user