Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gabriela Bittencourt
purr-data
Commits
df9ddcc9
Commit
df9ddcc9
authored
Oct 24, 2020
by
Albert Gräf
Browse files
Give make_index and menu_send the same treatment as menu_print, as these may
also run for extended periods of time.
parent
f822bea0
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/pdgui.js
View file @
df9ddcc9
...
...
@@ -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
;
...
...
@@ -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
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment