[gui-dev] Do not show this again for two recent dialog boxes

Jens-Uwe Mager <[email protected]> Thu, 18 Nov 2004 18:29:59 +0100
Newsgroups gmane.network.gnutella.limewire.gui.devel
Message-ID <[email protected]>
Attached a patch that implements the do not show this again check box
for two recently introduced messages for searching while not connected
or still connecting.
-- 
Jens-Uwe Mager	<pgp-mailto:F476EBC2>

_______________________________________________
gui-dev mailing list
[email protected]
http://www.limewire.org/mailman/listinfo/gui-dev
ask.patch (text/plain, 2.2 KB)
Index: core/com/limegroup/gnutella/settings/QuestionsHandler.java
===================================================================
RCS file: /cvs/core/com/limegroup/gnutella/settings/QuestionsHandler.java,v
retrieving revision 1.7
diff -u -r1.7 QuestionsHandler.java
--- core/com/limegroup/gnutella/settings/QuestionsHandler.java	25 Mar 2004 19:40:39 -0000	1.7
+++ core/com/limegroup/gnutella/settings/QuestionsHandler.java	18 Nov 2004 17:11:45 -0000
@@ -105,4 +105,18 @@
      */
     public static final BooleanSetting NO_PREVIEW_REPORT =
         FACTORY.createBooleanSetting("NO_PREVIEW_REPORT ", false);
+
+    /**
+     * Settings for whether or not to display a message if searching
+     * while not connected.
+     */
+    public static final BooleanSetting NO_NOT_CONNECTED =
+        FACTORY.createBooleanSetting("NO_NOT_CONNECTED", false);
+
+    /**
+     * Settings for whether or not to display a message if searching
+     * while still connecting.
+     */
+    public static final BooleanSetting NO_STILL_CONNECTING =
+        FACTORY.createBooleanSetting("NO_STILL_CONNECTING", false);
 }
Index: gui/com/limegroup/gnutella/gui/search/SearchMediator.java
===================================================================
RCS file: /cvs/gui/com/limegroup/gnutella/gui/search/SearchMediator.java,v
retrieving revision 1.86
diff -u -r1.86 SearchMediator.java
--- gui/com/limegroup/gnutella/gui/search/SearchMediator.java	3 Nov 2004 22:44:36 -0000	1.86
+++ gui/com/limegroup/gnutella/gui/search/SearchMediator.java	18 Nov 2004 17:12:08 -0000
@@ -294,9 +300,9 @@
             if(!RouterService.isConnected()) {
                 // if not connected or connecting, show one message.
                 if(!RouterService.isConnecting())
-                    GUIMediator.showMessage("SEARCH_NOT_CONNECTED");
+                    GUIMediator.showMessage("SEARCH_NOT_CONNECTED", QuestionsHandler.NO_NOT_CONNECTED);
                 else // if attempting to connect, show another.
-                    GUIMediator.showMessage("SEARCH_STILL_CONNECTING");
+                    GUIMediator.showMessage("SEARCH_STILL_CONNECTING", QuestionsHandler.NO_STILL_CONNECTING);
             }
         }