From ae3bc0e5bd69a2f4a2d81d292d81e4371c1ae032 Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Wed, 1 Jul 2015 00:00:51 -0400
Subject: [PATCH] hide 'use existing array' for garray properties

---
 pd/nw/dialog_canvas.html | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pd/nw/dialog_canvas.html b/pd/nw/dialog_canvas.html
index b90502fa1..413535451 100644
--- a/pd/nw/dialog_canvas.html
+++ b/pd/nw/dialog_canvas.html
@@ -535,6 +535,11 @@
             opt.textContent = 'Array #' + (i+1);
             arrays_select.appendChild(opt);
         }
+        // Hide checkbutton for existing graph if this isn't a new array dialog
+        if (!new_array_dialog) {
+            document.getElementsByClassName('array_in_existing_graph')[0]
+                .classList.add('hidden');
+        }
         array_choose(0);
     }
 
-- 
GitLab