Skip to content

Commit

Permalink
Fixed slowdown in actions due to computation of slides.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar Nierstrasz committed Mar 27, 2024
1 parent 3a1209c commit c78f4ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/GToolkit-Demo-Slideshows/PrioritySlideshow.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ PrioritySlideshow >> gtDemoNotesFor: aView [
{ #category : #actions }
PrioritySlideshow >> gtExportPngAction: anAction [
<gtAction>
self slides ifEmpty: [ ^ anAction empty ].
self slideMethods ifEmpty: [ ^ anAction empty ].
^ anAction button
label: ' PNG';
tooltip: 'Save PNGs to disk';
Expand Down Expand Up @@ -348,6 +348,7 @@ PrioritySlideshow >> gtGitAction: anAction [
{ #category : #actions }
PrioritySlideshow >> gtHTMLLocalExportActionFor: anAction [
<gtAction>
self slideMethods ifEmpty: [ ^ anAction empty ].
^ anAction button
label: 'HTML';
tooltip: 'Export the slide deck to HTML and store locally';
Expand Down
4 changes: 2 additions & 2 deletions src/GToolkit-Demo-Slideshows/SmalltalkIntroSlideshow.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,7 @@ A dynamic array is specified by curly braces around a series of expressions sepa
You can embed literal arrays within dynamic arrays, but not the other way around.'>
^ aSlide lepiterPage
setPriority;
startPage: (self db pageNamed: 'Syntax — arrays')
startPage: (self db pageNamed: 'Syntax — Arrays')
]

{ #category : #page }
Expand Down Expand Up @@ -1314,7 +1314,7 @@ There are only 6 keywords in Smalltalk, and three of them are the constants `nil
'>
^ aSlide lepiterPage
setPriority;
startPage: (self db pageNamed: 'Syntax — constants')
startPage: (self db pageNamed: 'Syntax — Constants')
]

{ #category : #page }
Expand Down

0 comments on commit c78f4ce

Please sign in to comment.