@@ -162,37 +162,36 @@ static private void createAndShowGUI(String[] args) {
162162 Preferences .init (null );
163163
164164// String filename = args.length > 1 ? args[0] : null;
165- if (SingleInstance .exists (args )) {
166- return ;
167- }
168- SingleInstance .createServer (platform );
165+ if (!SingleInstance .exists (args )) {
166+ SingleInstance .createServer (platform );
169167
170- // Set the look and feel before opening the window
171- try {
172- platform .setLookAndFeel ();
173- } catch (Exception e ) {
174- String mess = e .getMessage ();
175- if (mess .indexOf ("ch.randelshofer.quaqua.QuaquaLookAndFeel" ) == -1 ) {
176- System .err .println ("Non-fatal error while setting the Look & Feel." );
177- System .err .println ("The error message follows, however Processing should run fine." );
178- System .err .println (mess );
168+ // Set the look and feel before opening the window
169+ try {
170+ platform .setLookAndFeel ();
171+ } catch (Exception e ) {
172+ String mess = e .getMessage ();
173+ if (mess .indexOf ("ch.randelshofer.quaqua.QuaquaLookAndFeel" ) == -1 ) {
174+ System .err .println ("Non-fatal error while setting the Look & Feel." );
175+ System .err .println ("The error message follows, however Processing should run fine." );
176+ System .err .println (mess );
177+ }
179178 }
180- }
181179
182- // Create a location for untitled sketches
183- try {
184- untitledFolder = Base .createTempFolder ("untitled" , "sketches" );
185- untitledFolder .deleteOnExit ();
186- } catch (IOException e ) {
187- //e.printStackTrace();
188- Base .showError ("Trouble without a name" ,
189- "Could not create a place to store untitled sketches.\n " +
190- "That's gonna prevent us from continuing." , e );
191- }
180+ // Create a location for untitled sketches
181+ try {
182+ untitledFolder = Base .createTempFolder ("untitled" , "sketches" );
183+ untitledFolder .deleteOnExit ();
184+ } catch (IOException e ) {
185+ //e.printStackTrace();
186+ Base .showError ("Trouble without a name" ,
187+ "Could not create a place to store untitled sketches.\n " +
188+ "That's gonna prevent us from continuing." , e );
189+ }
192190
193191// System.out.println("about to create base...");
194- new Base (args );
192+ new Base (args );
195193// System.out.println("done creating base...");
194+ }
196195 }
197196
198197
0 commit comments