The only reason I did it was that only wanted DrFrame.ddirectory set to the value of the last recently opened file if DrFrame.prefs.defaultdirectory was not set. Otherwise, this overrides that option, and makes it useless.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I found you add a more condition testing, but in 244 , the self.prefs.defaultdirectory 's value should have been tested. So I skip doing it here.
The only reason I did it was that only wanted DrFrame.ddirectory set to the value of the last recently opened file if DrFrame.prefs.defaultdirectory was not set. Otherwise, this overrides that option, and makes it useless.