Skip to content

Commit

Permalink
Do not instantiate a new PharoLauncherApplication when opening the app
Browse files Browse the repository at this point in the history
  • Loading branch information
demarey committed Jun 3, 2022
1 parent 224edc0 commit 92cf1a5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/PharoLauncher-Spec2/PharoLauncherApplication.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ PharoLauncherApplication class >> menuCommandOn: aBuilder [
PharoLauncherApplication class >> open [
<script>

^ (Default := self new)
^ self default
openAsWorld: false;
run
]
Expand All @@ -140,7 +140,7 @@ PharoLauncherApplication class >> open [
PharoLauncherApplication class >> openFull [
<script>

^ (Default := self new)
^ self default
beOpenedAsWorld;
run
]
Expand All @@ -153,9 +153,11 @@ PharoLauncherApplication class >> pharoIcon16x16 [

]

{ #category : #accessing }
{ #category : #'class initialization' }
PharoLauncherApplication class >> reset [
Default ifNil: [ ^ self ].

Default closeAllWindows.
Default := nil
]

Expand Down

0 comments on commit 92cf1a5

Please sign in to comment.