MendaIcons bug fixed and using new functionality for file chooser UI.
This commit is contained in:
parent
cca6be97ef
commit
ac08ee55ed
@ -129,13 +129,15 @@ GfUIHelpers class >> messageNotImplementedYet [
|
|||||||
{ #category : #'graphical interface' }
|
{ #category : #'graphical interface' }
|
||||||
GfUIHelpers class >> openFromRecentlyUsed [
|
GfUIHelpers class >> openFromRecentlyUsed [
|
||||||
"Opens a recent notebooks list"
|
"Opens a recent notebooks list"
|
||||||
| selection |
|
| selection recentNotebooksReversed |
|
||||||
|
|
||||||
self recentNotebooks
|
self recentNotebooks
|
||||||
ifNotEmpty: [
|
ifNotEmpty: [
|
||||||
selection := UIManager default chooseFrom: recentNotebooks reversed title: 'Choose a notebook'.
|
recentNotebooksReversed := recentNotebooks reversed.
|
||||||
|
selection := UIManager default
|
||||||
|
chooseFrom: recentNotebooksReversed title: 'Choose a notebook...'.
|
||||||
selection > 0
|
selection > 0
|
||||||
ifTrue: [ GrafoscopioNotebook new openFromFile: (recentNotebooks at: selection)]
|
ifTrue: [ GrafoscopioNotebook new openFromFile: (recentNotebooksReversed at: selection)]
|
||||||
ifFalse: [ self inform: 'No notebook selected!' ]
|
ifFalse: [ self inform: 'No notebook selected!' ]
|
||||||
]
|
]
|
||||||
ifEmpty: [self messageNoRecentDocuments]
|
ifEmpty: [self messageNoRecentDocuments]
|
||||||
|
@ -809,7 +809,7 @@ GrafoscopioNotebook >> saveToFileUI [
|
|||||||
| file |
|
| file |
|
||||||
|
|
||||||
file := UIManager default
|
file := UIManager default
|
||||||
fileSave: 'Export notebook to file as...'
|
chooseForSaveFileReference: 'Export notebook to file as...'
|
||||||
extensions: #('ston')
|
extensions: #('ston')
|
||||||
path: (workingFile ifNotNil: [ workingFile parent ] ifNil: [ FileLocator documents ] ).
|
path: (workingFile ifNotNil: [ workingFile parent ] ifNil: [ FileLocator documents ] ).
|
||||||
file
|
file
|
||||||
|
Loading…
Reference in New Issue
Block a user