don't rely on the existence of an "arg" pointer
This commit is contained in:
parent
f236a438b8
commit
de80a63ae6
1 changed files with 2 additions and 2 deletions
|
@ -85,8 +85,8 @@ settimer(INIT, 1);
|
||||||
##
|
##
|
||||||
# Show/hide the fps display dialog.
|
# Show/hide the fps display dialog.
|
||||||
#
|
#
|
||||||
fpsDisplay = func {
|
fpsDisplay = func(v = nil) {
|
||||||
var w = size(arg) ? arg[0] : cmdarg().getBoolValue();
|
var w = v != nil ? v : cmdarg().getBoolValue();
|
||||||
fgcommand(w ? "dialog-show" : "dialog-close", props.Node.new({"dialog-name": "fps"}));
|
fgcommand(w ? "dialog-show" : "dialog-close", props.Node.new({"dialog-name": "fps"}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue