fix file select window no file

过滤问题导致没有文件可选择
This commit is contained in:
ShakaRover 2024-05-25 17:23:05 +08:00 committed by GitHub
parent b0fca77ea0
commit 4d0f895aa4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -253,7 +253,7 @@ if __name__ == "__main__":
initial_folder=os.path.join( initial_folder=os.path.join(
os.getcwd(), "assets/weights" os.getcwd(), "assets/weights"
), ),
file_types=((". pth"),), file_types=[('Model File', '*.pth')],
), ),
], ],
[ [
@ -264,7 +264,7 @@ if __name__ == "__main__":
sg.FileBrowse( sg.FileBrowse(
i18n("选择.index文件"), i18n("选择.index文件"),
initial_folder=os.path.join(os.getcwd(), "logs"), initial_folder=os.path.join(os.getcwd(), "logs"),
file_types=((". index"),), file_types=[('Index File', '*.index')],
), ),
], ],
], ],