Skip to content

Commit dead183

Browse files
committed
only show inspect menu in morphic backend. Fixes #741
1 parent cf8a5d7 commit dead183

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

src/PharoLauncher-Spec2/PhLImagesPresenter.class.st

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,12 @@ PhLImagesPresenter class >> buildContextualMenuGroupContext: aContext [
6262
register: (PhLRecreateImageCommand forSpecContext: aContext);
6363
register: (PhLDeleteImageCommand forSpecContext: aContext);
6464
yourself);
65-
register: ((CmCommandGroup named: 'extra') asSpecGroup
66-
register: (PhLInspectCommand forSpecContext: aContext);
67-
yourself);
65+
in: [ :commandGroup |
66+
aContext application isMorphicBackend ifTrue: [
67+
commandGroup register:
68+
((CmCommandGroup named: 'extra') asSpecGroup
69+
register: (PhLInspectCommand forSpecContext: aContext);
70+
yourself) ] ];
6871
yourself
6972
]
7073

src/PharoLauncher-Spec2/PharoLauncherApplication.class.st

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,12 @@ PharoLauncherApplication >> isLightTheme [
338338
^ self isDarkTheme not
339339
]
340340

341+
{ #category : 'testing' }
342+
PharoLauncherApplication >> isMorphicBackend [
343+
344+
^ self backend isKindOf: SpMorphicBackend
345+
]
346+
341347
{ #category : 'testing' }
342348
PharoLauncherApplication >> isStandalone [
343349

0 commit comments

Comments
 (0)