Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
David MacDonald
purr-data
Commits
37dbc20e
Commit
37dbc20e
authored
Jan 12, 2018
by
Jonathan Wilkes
Browse files
properly clean up gui on window close, remove some debugging messages
parent
208199ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/pdgui.js
View file @
37dbc20e
...
...
@@ -853,7 +853,7 @@ function gui_window_close(cid) {
nw_close_window
(
nw_win
);
});
// remove reference to the window from patchwin object
patchwin
[
cid
]
=
null
;
set_
patchwin
(
cid
,
null
)
;
loading
[
cid
]
=
null
;
}
...
...
@@ -1261,7 +1261,7 @@ exports.get_patchwin = function(name) {
return
patchwin
[
name
];
}
exports
.
set_patchwin
=
function
(
cid
,
win
)
{
var
set_patchwin
=
function
(
cid
,
win
)
{
patchwin
[
cid
]
=
win
;
if
(
win
)
{
gui
.
add
(
cid
,
win
);
...
...
@@ -1270,6 +1270,8 @@ exports.set_patchwin = function(cid, win) {
}
}
exports
.
set_patchwin
=
set_patchwin
;
exports
.
get_dialogwin
=
function
(
name
)
{
return
dialogwin
[
name
];
}
...
...
@@ -5190,8 +5192,6 @@ function gui_undo_menu(cid, undo_text, redo_text) {
// there may be some calls to subpatches after updating a dialog
// (like turning on GOP) which call this for a canvas that has
// been destroyed.
gui
(
cid
);
post
(
"
the thing is
"
+
gui
(
cid
).
get_elem
);
gui
(
cid
).
get_nw_window
(
function
(
nw_win
)
{
if
(
cid
!==
"
nobody
"
)
{
nw_win
.
window
.
nw_undo_menu
(
undo_text
,
redo_text
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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