Moonshine-IDE / Moonshine-IDE

Moonshine is a free and open source middleweight IDE built with ActionScript 3 for ActionScript 3, Apache Flex®, Apache Royale™, and Feathers development, with Cloud and Desktop support.
http://moonshine-ide.com/
Other
123 stars 15 forks source link

Project Settings: File and folder browse dialogs should default to the project root #672

Open joshtynjala opened 4 years ago

joshtynjala commented 4 years ago

I just created a new ActionScript project, and I want to add a library path in the project settings. I created a libs folder in my project, and I added a .swc file. When I click the Browse dir button, the dialog opens to the last folder that I selected in a previous session of Moonshine (in my case, it was the location of the JDK used for code intelligence). Now, I need to find my project folder manually before I can add the libs folder to the library path.

This isn't a big deal, but it would be a better user experience if file/folder pickers in the project settings defaulted to opening in the project's root folder instead. I think it can be done by setting the file's path before calling browseForDirectory() or browseForOpen().

var file:File = new File(projectPath);
file.browseForDirectory();
rat-moonshine commented 4 years ago

@JoelProminic requested similar development some time back as #520 .

As he suggested two paths we chose the system File browsing default behaviour - opening by the last known location if possible.