-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When exporting a single file, the filename defaults to the current FCStd name plus a dash and the name of the object. If multiple objects are selected, the default is the basename of the FCStd file. No extension is added. This behavior is controllable via two hidden preferences, BaseApp/Preferences/General/ExportDefaultFilenameSingle BaseApp/Preferences/General/ExportDefaultFilenameMultiple _Allow regeneration of default on new exports_ If an export has been done and it used the default filename, on the next export regenerate the filename (potentially updating the selected object name in that filename) instead of just defaulting to the last name. _Search for extension in chosen filter first_ Originally the file dialog simply searched for the first available extension in the overall filter list. This commit modifies it to first check the selected extension, and only if that is empty to search the full filter list. This section of code only runs if a default filename is set but does not have an extension ("suffix" in Qt's terms).
- Loading branch information
Showing
2 changed files
with
202 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters