@@ -223,6 +223,8 @@ public Base(String[] args) {
223223 Mode javaScriptMode = new JavaScriptMode (this , getContentFile ("modes/javascript" ));
224224 modeList = new Mode [] { defaultMode , androidMode , javaScriptMode };
225225// modeList = new Mode[] { defaultMode, androidMode };
226+
227+ libraryManagerFrame = new ContributionManager ();
226228
227229 // Get the sketchbook path, and make sure it's set properly
228230 determineSketchbookFolder ();
@@ -1404,12 +1406,10 @@ public void handlePrefs() {
14041406 * Show the library installer window.
14051407 */
14061408 public void handleAddOrRemoveLibrary () {
1407- if (libraryManagerFrame == null ) libraryManagerFrame = new ContributionManager (activeEditor );
14081409 libraryManagerFrame .showFrame (activeEditor );
14091410 }
14101411
14111412 public void handleShowUpdates () {
1412- if (libraryManagerFrame == null ) libraryManagerFrame = new ContributionManager (activeEditor );
14131413 libraryManagerFrame .showFrame (activeEditor );
14141414 libraryManagerFrame .setFilterText ("has:updates" );
14151415 }
@@ -1419,7 +1419,6 @@ public void handleShowUpdates() {
14191419 * user. Returns the number of libraries installed.
14201420 */
14211421 public boolean handleConfirmAndInstallLibrary (File libFile ) {
1422- if (libraryManagerFrame == null ) libraryManagerFrame = new ContributionManager (activeEditor );
14231422 return libraryManagerFrame .confirmAndInstallLibrary (activeEditor , libFile ) != null ;
14241423 }
14251424
0 commit comments