Просмотр исходного кода

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
Remco Burema 4 лет назад
Родитель
Сommit
1d55befbe2
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      plugins/RemovableDriveOutputDevice/RemovableDriveOutputDevice.py

+ 1 - 1
plugins/RemovableDriveOutputDevice/RemovableDriveOutputDevice.py

@@ -79,7 +79,7 @@ class RemovableDriveOutputDevice(OutputDevice):
 
         if extension:  # Not empty string.
             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:
             Logger.log("d", "Writing to %s", file_name)