Permalink
Browse files

Turn off the need-help request for now, and instead enable statistics…

… opt-in/out prompting.
  • Loading branch information...
1 parent 55bb613 commit 6c5bca1873cdb1243b9ed0dc7e16c248e95eb5c1 @cyberfox committed Mar 12, 2012
Showing with 12 additions and 6 deletions.
  1. +10 −6 src/com/jbidwatcher/app/JBidWatch.java
  2. +2 −0 src/com/jbidwatcher/ui/commands/UserActions.java
@@ -758,13 +758,17 @@ private void preQueueServices(SuperQueue q) {
q.preQueue("ALLOW_UPDATES", "Swing", now + (Constants.ONE_SECOND * 20));
- // Disable this when I am once more gainfully employed.
- if(JConfig.queryConfiguration("seen.need_help2") == null) {
- if(JConfig.queryConfiguration("first_run", "false").equals("false")) {
- q.preQueue("Need Help", "user", now + (Constants.ONE_SECOND * 15));
- JConfig.setConfiguration("seen.need_help2", "true");
- }
+ // Ask the user to allow anonymized statistics gathering.
+ if(JConfig.queryConfiguration("metrics.optin", "ask").equals("ask")) {
+ q.preQueue("Metrics", "user", now + (Constants.ONE_SECOND * 5));
}
+ // Disable this when I am once more gainfully employed.
+// if(JConfig.queryConfiguration("seen.need_help2") == null) {
+// if(JConfig.queryConfiguration("first_run", "false").equals("false")) {
+// q.preQueue("Need Help", "user", now + (Constants.ONE_SECOND * 15));
+// JConfig.setConfiguration("seen.need_help2", "true");
+// }
+// }
// Other interesting examples...
//q.preQueue("This is a message for the display!", "Swing", System.currentTimeMillis()+Constants.ONE_MINUTE);
@@ -119,6 +119,8 @@ private void handleStringMessage(Object deQ) {
UndoDonate();
} else if(commandStr.equals("Need Help")) {
DoNeedHelp();
+ } else if(commandStr.equals("Metrics")) {
+ doMetrics();
} else if(commandStr.equals("Configure")) {
DoConfigure();
} else if(commandStr.equals("Upload")) {

0 comments on commit 6c5bca1

Please sign in to comment.