Skip to content

Commit 2e38eac

Browse files
authored
Add files via upload
1 parent bffe94a commit 2e38eac

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

main/AutoSubSync.pyw

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,6 @@ REMOVED_ITEM = texts.REMOVED_ITEM[LANGUAGE]
408408
FILES_MUST_CONTAIN_PATTERNS = texts.FILES_MUST_CONTAIN_PATTERNS[LANGUAGE]
409409
NO_VALID_SUBTITLE_FILES = texts.NO_VALID_SUBTITLE_FILES[LANGUAGE]
410410
default_encoding = sys.getfilesystemencoding()
411-
# Icon fix
412-
413411
def update_config(key, value):
414412
if remember_the_changes or key == 'remember_the_changes':
415413
try:
@@ -4269,8 +4267,8 @@ try:
42694267
if os.path.exists('icon.ico'):
42704268
root.iconbitmap('icon.ico')
42714269
else: # Linux or macOS
4272-
if os.path.exists('icon.png'):
4273-
icon = PhotoImage(file='icon.png')
4270+
if os.path.exists('icon.ico'):
4271+
icon = PhotoImage(file='icon.ico')
42744272
root.iconphoto(True, icon)
42754273
except Exception as e:
42764274
pass

0 commit comments

Comments
 (0)