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]
- !