Fix missing part of filename w. dots for removable dr.

Project names are no longer stored with their extension internally, so the removal of an extra extension wasn't necesary. Fixes #8123
This commit is contained in:
Remco Burema 2020-07-30 13:23:46 +02:00
parent f9c6bbb092
commit 1d55befbe2
No known key found for this signature in database
GPG Key ID: 215C49431D43F98C

View File

@ -79,7 +79,7 @@ class RemovableDriveOutputDevice(OutputDevice):
if extension: # Not empty string. if extension: # Not empty string.
extension = "." + extension extension = "." + extension
file_name = os.path.join(self.getId(), os.path.splitext(file_name)[0] + extension) file_name = os.path.join(self.getId(), file_name + extension)
try: try:
Logger.log("d", "Writing to %s", file_name) Logger.log("d", "Writing to %s", file_name)