Skip to content

Commit

Permalink
Merge pull request #33 from DoobyDouglas/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
DoobyDouglas authored Jun 23, 2023
2 parents cafb8f4 + 557c13d commit 66c3b4a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ new_ff_subs.py
some_files/
ffmpeg.exe
subs_langs.json
REAPERSCRIPT.ini
script.spec
build/
develop-eggs/
Expand Down
2 changes: 1 addition & 1 deletion REAPERSCRIPT.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ subs_cleaner = False
add_track_for_subs = False

[SUBS]
subs_lang = Russыыыыыia
subs_lang = Russadsia

Binary file modified ReaperScript.exe
Binary file not shown.
9 changes: 6 additions & 3 deletions ReaperScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,12 @@ def on_fix_check_click(master: tkinter.Tk, BUTTONS: List):
state='readonly',
width=13,
)
if config['SUBS']['subs_lang'] in SUBS_LANGS_LIST:
menu.set(config['SUBS']['subs_lang'])
else:
try:
if config['SUBS']['subs_lang'] in SUBS_LANGS_LIST:
menu.set(config['SUBS']['subs_lang'])
else:
menu.set(SUBS_LANGS_LIST[0])
except KeyError:
menu.set(SUBS_LANGS_LIST[0])
menu.place(relx=0.5, rely=1.0, anchor="s", x=9, y=-424)
ToolTip(menu, HELP_DICT['subs_lang'], 1)
Expand Down

0 comments on commit 66c3b4a

Please sign in to comment.