mirror of
https://github.com/hacksider/Deep-Live-Cam.git
synced 2026-09-02 14:00:42 +02:00
fix(webp): finish extension centralization from pre-submission review
- build the video save-dialog filter from VIDEO_EXTENSIONS (_VIDEO_FILE_FILTER) instead of a hardcoded "Videos (*.mp4 *.mkv)" — the last filter that still drifted from the canonical set - remove the now-dead file_types list (unused in both the fork and upstream; the PySide6 dialogs use the QFileDialog filter strings) and drop it from the centralization comment
This commit is contained in:
+4
-1
@@ -244,6 +244,9 @@ _IMAGE_FILE_FILTER = "Images (" + " ".join(
|
||||
_MEDIA_FILE_FILTER = "Media (" + " ".join(
|
||||
f"*{ext}" for ext in (*modules.globals.IMAGE_EXTENSIONS, *modules.globals.VIDEO_EXTENSIONS)
|
||||
) + ")"
|
||||
_VIDEO_FILE_FILTER = "Videos (" + " ".join(
|
||||
f"*{ext}" for ext in modules.globals.VIDEO_EXTENSIONS
|
||||
) + ")"
|
||||
|
||||
|
||||
# ─── image utilities ─────────────────────────────────────────────────────
|
||||
@@ -900,7 +903,7 @@ class MainWindow(QMainWindow):
|
||||
path, _f = QFileDialog.getSaveFileName(
|
||||
self, _("save video output file"),
|
||||
os.path.join(_RECENT_OUTPUT_DIR or "", "output.mp4"),
|
||||
"Videos (*.mp4 *.mkv)",
|
||||
_VIDEO_FILE_FILTER,
|
||||
)
|
||||
else:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user