Bladeren bron

Added migration and firstrun params to the debug command

first run wizard is now packed, all content is now visible on GTK, but its too big

git-svn-id: http://svn.dmdirc.com/trunk@2656 00569f92-eb28-0410-84fd-f71c24880f
tags/0.5.5
Gregory Holmes 16 jaren geleden
bovenliggende
commit
82b02f94c9

+ 7
- 0
src/com/dmdirc/commandparser/commands/global/Debug.java Bestand weergeven

@@ -22,6 +22,7 @@
22 22
 
23 23
 package com.dmdirc.commandparser.commands.global;
24 24
 
25
+import com.dmdirc.Main;
25 26
 import com.dmdirc.Server;
26 27
 import com.dmdirc.commandparser.CommandManager;
27 28
 import com.dmdirc.commandparser.commands.GlobalCommand;
@@ -85,6 +86,10 @@ public class Debug extends GlobalCommand implements IntelligentCommand {
85 86
             doServerInfo(origin, isSilent);
86 87
         } else if ("benchmark".equals(args[0])) {
87 88
             doBenchmark(origin, isSilent);
89
+        } else if ("firstrun".equals(args[0])) {
90
+            Main.getUI().showFirstRunWizard();
91
+        } else if ("migration".equals(args[0])) {
92
+            Main.getUI().showMigrationWizard();
88 93
         } else {
89 94
             sendLine(origin, isSilent, FORMAT_ERROR, "Unknown debug action.");
90 95
         }
@@ -333,6 +338,8 @@ public class Debug extends GlobalCommand implements IntelligentCommand {
333 338
             res.add("forceupdate");
334 339
             res.add("serverinfo");
335 340
             res.add("benchmark");
341
+            res.add("firstrun");
342
+            res.add("migration");
336 343
         } else if (arg == 1 && "error".equals(previousArgs.get(0))) {
337 344
             res.add("user");
338 345
             res.add("app");

+ 1
- 1
src/com/dmdirc/ui/swing/dialogs/wizard/firstrun/SwingFirstRunWizard.java Bestand weergeven

@@ -173,7 +173,7 @@ public final class SwingFirstRunWizard implements Wizard, FirstRunWizard {
173 173
                 new WizardDialog(firstRun ? "Setup wizard" : "Migration wizard",
174 174
                 steps, this, true, (MainFrame) Main.getUI().getMainWindow());
175 175
 
176
-        wizardDialog.setPreferredSize(new Dimension(400, 350));
176
+        wizardDialog.pack();
177 177
 
178 178
         wizardDialog.display();
179 179
     }

Laden…
Annuleren
Opslaan