Skip to content

Commit

Permalink
fix bug on the library
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyan11 committed Jun 24, 2024
1 parent f0e2de0 commit ee5f2eb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Pyramid-Bloc/PyramidTreePlugin.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,11 @@ PyramidTreePlugin >> initialize [
{ #category : 'initialization' }
PyramidTreePlugin >> initializeLibraryPresenters [

| idGenerator library |
library := PyramidElementToAddPresenter new.
| idGenerator |
idGenerator := PyramidLibraryContainerPresenter makeIdGenerator.
libraryPresenterForElement := PyramidLibraryContainerPresenter new
idGenerator: idGenerator;
library: library;
library: PyramidElementToAddPresenter new;
buttonLabel: 'Add new child';
buttonAction: [
self editor propertiesManager
Expand All @@ -179,7 +178,7 @@ PyramidTreePlugin >> initializeLibraryPresenters [
yourself.
libraryPresenterForRoot := PyramidLibraryContainerPresenter new
idGenerator: idGenerator;
library: library;
library: PyramidElementToAddPresenter new;
buttonLabel: 'Add new on first level';
buttonAction: [
self editor propertiesManager
Expand All @@ -191,7 +190,7 @@ PyramidTreePlugin >> initializeLibraryPresenters [
firstLevelElements }
with:
libraryPresenterForRoot elementToAdd ];
yourself.
yourself
]

{ #category : 'as yet unclassified' }
Expand Down

0 comments on commit ee5f2eb

Please sign in to comment.