From 4bd1b3a6ff589c1b314fa6aefb0c4834911221b4 Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Sun, 12 Nov 2017 17:58:57 -0500 Subject: [PATCH] hide the checkbox that disables menus since we haven't implemented it yet --- pd/nw/dialog_canvas.html | 4 ++++ pd/nw/locales/en/translation.json | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pd/nw/dialog_canvas.html b/pd/nw/dialog_canvas.html index 0fdbf8dc2..f8baeca13 100644 --- a/pd/nw/dialog_canvas.html +++ b/pd/nw/dialog_canvas.html @@ -693,6 +693,10 @@ function register_window_id(gfxstub, attr_objects) { } init_arrays(pd_garray_attrs); + // Disabling the menus does not yet work, so we hide that button for + // the moment + document.getElementsByClassName("no_menu")[0].style.setProperty("display", + "none"); // We don't turn on rendering of the "container" div until // We've finished displaying all the spans and populating the // labels and form elements. That makes it snappier, at least diff --git a/pd/nw/locales/en/translation.json b/pd/nw/locales/en/translation.json index 5490615cd..2032010d8 100644 --- a/pd/nw/locales/en/translation.json +++ b/pd/nw/locales/en/translation.json @@ -305,9 +305,9 @@ "viewbox_offsets": "viewbox offsets", "arrays": "array options" }, - "no_scroll": "hide scrollbars", + "no_scroll": "hide scrollbars (experimental)", "no_scroll_tt": "hide window scrollbars", - "no_menu": "hide menu", + "no_menu": "hide menu (experimental)", "no_menu_tt": "hide window menu", "gop": "graph on parent", "gop_tt": "show the inner contents of this canvas in a rectangle on the containing canvas", -- GitLab