Skip to content

Commit

Permalink
refactor(webui): 修复未选中字幕生效问题
Browse files Browse the repository at this point in the history
- 将 get_subtitle_params 函数中的 'enabled' 键名修改为 'subtitle_enabled',以保持与 session_state 中的键名一致
  • Loading branch information
linyqh committed Nov 27, 2024
1 parent d67300c commit 7346396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webui/components/subtitle_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def render_style_settings(tr):
def get_subtitle_params():
"""获取字幕参数"""
return {
'enabled': st.session_state.get('subtitle_enabled', True),
'subtitle_enabled': st.session_state.get('subtitle_enabled', True),
'font_name': st.session_state.get('font_name', ''),
'font_size': st.session_state.get('font_size', 60),
'text_fore_color': st.session_state.get('text_fore_color', '#FFFFFF'),
Expand Down

0 comments on commit 7346396

Please sign in to comment.