From 6c4cf425be65cd2d469c5be5b6a278463eda51c1 Mon Sep 17 00:00:00 2001
From: Bhl0318 <53030277+Bhl0318@users.noreply.github.com>
Date: Sun, 29 Sep 2024 13:28:51 +0800
Subject: [PATCH] up

---
 .gitignore    | 1 +
 modules/ui.py | 5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore
index 97197c1..8628c4c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -24,3 +24,4 @@ models/GFPGANv1.4.pth
 models/DMDNet.pth
 faceswap/
 .vscode/
+/ffmpeg-7.0.2-full_build
diff --git a/modules/ui.py b/modules/ui.py
index ec2210a..a7baf6d 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -774,12 +774,13 @@ def swap_faces_paths() -> None:
 
 def select_target_path() -> None:
     global RECENT_DIRECTORY_TARGET, img_ft, vid_ft
-
+    combined_types = ('Media',(img_ft[-1] + vid_ft[-1])
+)
     PREVIEW.withdraw()
     target_path = ctk.filedialog.askopenfilename(
         title="select an target image or video",
         initialdir=RECENT_DIRECTORY_TARGET,
-        filetypes=[img_ft, vid_ft],
+        filetypes=[combined_types],
     )
     if is_image(target_path):
         modules.globals.target_path = target_path