MendaIcons bug fixed and using new functionality for file chooser UI.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2019-02-18 21:33:23 +00:00 committed by SantiagoBragagnolo
parent 0c18565f07
commit 5c1258ba31
2 changed files with 6 additions and 4 deletions

View File

@ -129,13 +129,15 @@ GfUIHelpers class >> messageNotImplementedYet [
{ #category : #'graphical interface' }
GfUIHelpers class >> openFromRecentlyUsed [
"Opens a recent notebooks list"
| selection |
| selection recentNotebooksReversed |
self recentNotebooks
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
ifTrue: [ GrafoscopioNotebook new openFromFile: (recentNotebooks at: selection)]
ifTrue: [ GrafoscopioNotebook new openFromFile: (recentNotebooksReversed at: selection)]
ifFalse: [ self inform: 'No notebook selected!' ]
]
ifEmpty: [self messageNoRecentDocuments]

View File

@ -809,7 +809,7 @@ GrafoscopioNotebook >> saveToFileUI [
| file |
file := UIManager default
fileSave: 'Export notebook to file as...'
chooseForSaveFileReference: 'Export notebook to file as...'
extensions: #('ston')
path: (workingFile ifNotNil: [ workingFile parent ] ifNil: [ FileLocator documents ] ).
file