@@ -202,7 +202,23 @@ public Base(String[] args) throws Exception {
202
202
203
203
SplashScreenHelper splash ;
204
204
if (parser .isGuiMode ()) {
205
+ // Setup all notification widgets
205
206
splash = new SplashScreenHelper (SplashScreen .getSplashScreen ());
207
+ BaseNoGui .notifier = new GUIUserNotifier (this );
208
+
209
+ // Setup the theme coloring fun
210
+ Theme .init ();
211
+ System .setProperty ("swing.aatext" , PreferencesData .get ("editor.antialias" , "true" ));
212
+
213
+ // Set the look and feel before opening the window
214
+ try {
215
+ BaseNoGui .getPlatform ().setLookAndFeel ();
216
+ } catch (Exception e ) {
217
+ // ignore
218
+ }
219
+
220
+ // Use native popups so they don't look so crappy on osx
221
+ JPopupMenu .setDefaultLightWeightPopupEnabled (false );
206
222
} else {
207
223
splash = new SplashScreenHelper (null );
208
224
}
@@ -211,29 +227,13 @@ public Base(String[] args) throws Exception {
211
227
212
228
BaseNoGui .initVersion ();
213
229
214
- // Use native popups so they don't look so crappy on osx
215
- JPopupMenu .setDefaultLightWeightPopupEnabled (false );
216
-
217
230
// Don't put anything above this line that might make GUI,
218
231
// because the platform has to be inited properly first.
219
232
220
- // setup the theme coloring fun
221
- Theme .init ();
222
- System .setProperty ("swing.aatext" , PreferencesData .get ("editor.antialias" , "true" ));
223
-
224
- // Set the look and feel before opening the window
225
- try {
226
- BaseNoGui .getPlatform ().setLookAndFeel ();
227
- } catch (Exception e ) {
228
- // ignore
229
- }
230
-
231
233
// Create a location for untitled sketches
232
234
untitledFolder = FileUtils .createTempFolder ("untitled" + new Random ().nextInt (Integer .MAX_VALUE ), ".tmp" );
233
235
DeleteFilesOnShutdown .add (untitledFolder );
234
236
235
- BaseNoGui .notifier = new GUIUserNotifier (this );
236
-
237
237
BaseNoGui .checkInstallationFolder ();
238
238
239
239
// If no path is set, get the default sketchbook folder for this platform
0 commit comments