[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sc-devel] clear number views in server window on quit?



Any objection to this?

Just as an instant impression, it looks weird to me when there are old numbers in the server windows after quitting the server. I also don't like the "?"'s put in there when opening the window. An inactive server should have empty space until it's running.

Since I'll be away from my mac for the week, I'll need to commit today or not until next weekend. If no objection I'll do it today.

hjh

Index: ServerPlusGUI.sc
===================================================================
--- ServerPlusGUI.sc    (revision 7388)
+++ ServerPlusGUI.sc    (working copy)
@@ -132,7 +132,8 @@
                                booter.setProperty(\value,0);
                                recorder.setProperty(\value,0);
                                recorder.enabled = false;
-
+                               countsViews.do(_.string = "");
                        };
                        booting = {
                                active.stringColor_(Color.new255(255, 140, 0));
@@ -199,7 +200,7 @@
 
                        if (i < 2, { 
                                numView = gui.staticText.new(w, Rect(0,0, 34, 12));
-                               numView.string = "?";
                                numView.font = font;
                                numView.align = \left;
 
@@ -210,7 +211,7 @@
                        },{
                                numView = gui.staticText.new(w, Rect(0,0, 50, 12));
                                numView.font = font;
-                               numView.string = "?";
                                numView.align = \left;
                        });
 



: H. James Harkins

: jamshark70@xxxxxxxxxxxxxxxxx

: http://www.dewdrop-world.net

.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:


"Come said the Muse,

Sing me a song no poet has yet chanted,

Sing me the universal."  -- Whitman