mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Fix countdown showing if restart with dialog open and recording enabled
This commit is contained in:
parent
f164fe7532
commit
49907970fb
1 changed files with 9 additions and 7 deletions
|
@ -342,6 +342,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function tearDown() {
|
function tearDown() {
|
||||||
|
if (!tablet) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
tablet.webEventReceived.disconnect(onWebEventReceived);
|
||||||
|
tablet.tabletShownChanged.disconnect(onTabletShownChanged);
|
||||||
|
tablet.screenChanged.disconnect(onTabletScreenChanged);
|
||||||
|
button.clicked.disconnect(onButtonClicked);
|
||||||
|
|
||||||
if (recordingState === COUNTING_DOWN) {
|
if (recordingState === COUNTING_DOWN) {
|
||||||
cancelCountdown();
|
cancelCountdown();
|
||||||
} else if (recordingState === RECORDING) {
|
} else if (recordingState === RECORDING) {
|
||||||
|
@ -352,13 +361,6 @@
|
||||||
tablet.gotoHomeScreen();
|
tablet.gotoHomeScreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!tablet) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
tablet.webEventReceived.disconnect(onWebEventReceived);
|
|
||||||
tablet.tabletShownChanged.disconnect(onTabletShownChanged);
|
|
||||||
tablet.screenChanged.disconnect(onTabletScreenChanged);
|
|
||||||
button.clicked.disconnect(onButtonClicked);
|
|
||||||
tablet.removeButton(button);
|
tablet.removeButton(button);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue