mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Fix (work around) tablet access at Interface start-up crashing Interface
This commit is contained in:
parent
ef8f36026c
commit
15128faa49
1 changed files with 11 additions and 3 deletions
|
@ -24,7 +24,9 @@
|
||||||
RecordingIndicator,
|
RecordingIndicator,
|
||||||
Recorder,
|
Recorder,
|
||||||
Player,
|
Player,
|
||||||
Dialog;
|
Dialog,
|
||||||
|
|
||||||
|
SCRIPT_STARTUP_DELAY = 5000; // 5s
|
||||||
|
|
||||||
function log(message) {
|
function log(message) {
|
||||||
print(APP_NAME + ": " + message);
|
print(APP_NAME + ": " + message);
|
||||||
|
@ -625,6 +627,12 @@
|
||||||
tablet.removeButton(button);
|
tablet.removeButton(button);
|
||||||
}
|
}
|
||||||
|
|
||||||
setUp();
|
// FIXME: If setUp() is run immediately at Interface start-up, Interface hangs and crashes because of the line of code:
|
||||||
Script.scriptEnding.connect(tearDown);
|
// tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
|
||||||
|
//setUp();
|
||||||
|
//Script.scriptEnding.connect(tearDown);
|
||||||
|
Script.setTimeout(function () {
|
||||||
|
setUp();
|
||||||
|
Script.scriptEnding.connect(tearDown);
|
||||||
|
}, SCRIPT_STARTUP_DELAY);
|
||||||
}());
|
}());
|
||||||
|
|
Loading…
Reference in a new issue