Skip to content

Commit

Permalink
Give make_index and menu_send the same treatment as menu_print, as th…
Browse files Browse the repository at this point in the history
…ese may

also run for extended periods of time.
  • Loading branch information
agraef committed Oct 24, 2020
1 parent f822bea commit df9ddcc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pd/nw/pdgui.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ function make_index() {
finish_index();
}
}
pdsend("pd gui-busy 1");
index_started = true;
index_start_time = new Date().getTime() / 1000;
var idx, manif;
Expand Down Expand Up @@ -329,6 +330,7 @@ function make_index() {
post("building help index in " + doc_path);
dive(doc_path, read_file, browser_path?make_index_cont:finish_index);
}
pdsend("pd gui-busy 0");
}

// AG: This is called from dialog_search.html with a callback that expects to
Expand Down Expand Up @@ -1360,7 +1362,9 @@ function gui_quit_dialog() {
function menu_send(name) {
var message,
win = name ? patchwin[name] : pd_window;
pdsend("pd gui-busy 1");
message = win.window.prompt("Type a message to send to Pd", name);
pdsend("pd gui-busy 0");
if (message != undefined && message.length) {
post("Sending message to Pd: " + message + ";");
pdsend(message);
Expand Down

0 comments on commit df9ddcc

Please sign in to comment.