Skip to content

Commit 66c3b4a

Browse files
authored
Merge pull request #33 from DoobyDouglas/develop
Develop
2 parents cafb8f4 + 557c13d commit 66c3b4a

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ new_ff_subs.py
1818
some_files/
1919
ffmpeg.exe
2020
subs_langs.json
21+
REAPERSCRIPT.ini
2122
script.spec
2223
build/
2324
develop-eggs/

REAPERSCRIPT.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ subs_cleaner = False
1717
add_track_for_subs = False
1818

1919
[SUBS]
20-
subs_lang = Russыыыыыia
20+
subs_lang = Russadsia
2121

ReaperScript.exe

36 Bytes
Binary file not shown.

ReaperScript.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,12 @@ def on_fix_check_click(master: tkinter.Tk, BUTTONS: List):
286286
state='readonly',
287287
width=13,
288288
)
289-
if config['SUBS']['subs_lang'] in SUBS_LANGS_LIST:
290-
menu.set(config['SUBS']['subs_lang'])
291-
else:
289+
try:
290+
if config['SUBS']['subs_lang'] in SUBS_LANGS_LIST:
291+
menu.set(config['SUBS']['subs_lang'])
292+
else:
293+
menu.set(SUBS_LANGS_LIST[0])
294+
except KeyError:
292295
menu.set(SUBS_LANGS_LIST[0])
293296
menu.place(relx=0.5, rely=1.0, anchor="s", x=9, y=-424)
294297
ToolTip(menu, HELP_DICT['subs_lang'], 1)

0 commit comments

Comments
 (0)