Skip to content

Commit

Permalink
Merge pull request #984 from Enzo-Demeulenaere/fileSystem-saveas
Browse files Browse the repository at this point in the history
[Suggestion] Making sure the 'save as' treeNavigationPresenter points to the right file system
  • Loading branch information
Ducasse authored Feb 9, 2025
2 parents fee670b + 7e1a116 commit 569f84e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/NewTools-FileBrowser/StDirectoryTreePresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ StDirectoryTreePresenter >> expandPath: aFileLocator [
Smalltalk os isWindows ifTrue: [
currentNode := currentNode asFileReference parent.
aPathForSpec := OrderedCollection new ].

"This code is (a certainly wrong) way to ensure the treeNavigationPresenter widget points to the right fileSystem (that could be a MemoryStore) as it search for roots of the disk and doesn't allow to check in a MemoryStore "
"(currentNode fileReference fileSystem = aFileLocator fileSystem)
ifFalse: [ directoryTreePresenter roots: { StRootDirectoryWrapper on: aFileLocator fileSystem root }.
currentNode fileReference: aFileLocator ]."

path do: [ :aPart |
| subdirs |
Expand Down

0 comments on commit 569f84e

Please sign in to comment.