[squeak-dev] The Trunk: Files-eem.184.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Nov 29 18:24:52 UTC 2020


Eliot Miranda uploaded a new version of Files to project The Trunk:
http://source.squeak.org/trunk/Files-eem.184.mcz

==================== Summary ====================

Name: Files-eem.184
Author: eem
Time: 29 November 2020, 10:24:50.876717 am
UUID: 453a229c-9b4d-4acb-b8ba-c0688fc17020
Ancestors: Files-pre.183

Add a guard to FileDirectory class>>requestDropDirectory:.  Every time I connect my headphone buds I get an MNU because primDropRequestFileName: answers nil.  This squashes the MNU.

=============== Diff against Files-pre.183 ===============

Item was changed:
  ----- Method: FileDirectory class>>requestDropDirectory: (in category 'dnd requests') -----
  requestDropDirectory: dropIndex
  
+ 	^(FileStream primDropRequestFileName: dropIndex) ifNotNil:
+ 		[:dropFileDirdectoryName| | potentialDirectory | 
+ 		potentialDirectory := self on: dropFileDirdectoryName.
+ 		potentialDirectory exists ifTrue: [potentialDirectory]]!
- 	| potentialDirectory | 
- 	potentialDirectory := self on: (FileStream primDropRequestFileName: dropIndex).
- 	^ potentialDirectory exists ifTrue: [potentialDirectory]
- !



More information about the Squeak-dev mailing list