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
nerrons
purr-data
Commits
913ad71e
Commit
913ad71e
authored
Jan 03, 2018
by
Albert Gräf
Browse files
Fix a gop-related update issue (
#401
).
parent
6b3ae079
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/pdgui.js
View file @
913ad71e
...
...
@@ -2813,8 +2813,14 @@ function gui_radio_button_coords(cid, tag, x1, y1, xi, yi, i, s, d, orient) {
}
function
gui_radio_update
(
cid
,
tag
,
fgcolor
,
prev
,
next
)
{
// Make sure that we aren't invoked before the patchwin exists.
if
(
!
patchwin
[
cid
])
{
return
;
}
var
prev
=
get_item
(
cid
,
tag
+
"
button_
"
+
prev
),
next
=
get_item
(
cid
,
tag
+
"
button_
"
+
next
);
// There seems to be a race condition here so that in some rare
// circumstances related to gop areas prev/next may not be set yet. Bail
// out in that case. This resolves issue #401. -ag
if
(
!
prev
||
!
next
)
{
return
;
}
configure_item
(
prev
,
{
display
:
"
none
"
});
configure_item
(
next
,
{
display
:
"
inline
"
,
...
...
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