Skip to content

Commit

Permalink
try another way to restart the UI process
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusDenker committed Jan 12, 2021
1 parent 312accf commit 95a7e71
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/Morphic-Core/MorphicCoreUIManager.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ Class {

{ #category : #cleanup }
MorphicCoreUIManager class >> restartMethods [
UIProcess ifNotNil: [self default spawnNewProcess ]
UIProcess ifNotNil: [
| process |
process := UIProcess.
self new spawnNewProcess.
process terminate. ]
]

{ #category : #'ui requests' }
Expand Down
6 changes: 5 additions & 1 deletion src/Polymorph-Widgets/MorphicUIManager.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ MorphicUIManager class >> isValidForCurrentSystemConfiguration [

{ #category : #cleanup }
MorphicUIManager class >> restartMethods [
UIProcess ifNotNil: [self default spawnNewProcess ]
UIProcess ifNotNil: [
| process |
process := UIProcess.
self new spawnNewProcess.
process terminate. ]
]

{ #category : #'ui process' }
Expand Down

0 comments on commit 95a7e71

Please sign in to comment.