diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-07-13 15:33:38 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-07-13 15:33:38 -0700 |
commit | 12217f783d7652b7a81b431793b78ce8da14eaa0 (patch) | |
tree | 3b7269ebd77e54d74b6f7d9820c00a7ffa7b0b33 | |
parent | d92a9560be44daebd8fa65a33ba753f554c11247 (diff) |
set status message in main loop queue
-rw-r--r-- | src/library_browser.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/library_browser.js b/src/library_browser.js index f12e966e..ce59dbdd 100644 --- a/src/library_browser.js +++ b/src/library_browser.js @@ -223,6 +223,7 @@ mergeInto(LibraryManager.library, { var wrapper = function() { if (Browser.mainLoop.queue.length > 0) { Browser.mainLoop.queue.shift()(); + if (Browser.mainLoop.queue.length == 0 && Module['setStatus']) Module['setStatus'](''); setTimeout(wrapper, 0); return; } @@ -267,6 +268,7 @@ mergeInto(LibraryManager.library, { }, emscripten_push_main_loop_blocker: function(func) { + if (Module['setStatus']) Module['setStatus']('Please wait..'); Browser.mainLoop.queue.push(FUNCTION_TABLE[func]); }, |