Skip to content

Commit

Permalink
Keep richtext when running without updating text style and all stages…
Browse files Browse the repository at this point in the history
… disabled #498
  • Loading branch information
dmMaze committed Jun 27, 2024
1 parent 08c4788 commit 319c0d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ def on_run_imgtrans(self):
textblk.default_stroke_width = 0.2
textblk.text = []
textblk.set_font_colors((0, 0, 0), (0, 0, 0))
if pcfg.module.enable_translate or all_disabled or pcfg.module.enable_ocr:
if pcfg.module.enable_translate or (all_disabled and not self._run_imgtrans_wo_textstyle_update) or pcfg.module.enable_ocr:
textblk.rich_text = ''
# textblk.font_size = textblk.detected_font_size ???
textblk.vertical = textblk.src_is_vertical
Expand Down

0 comments on commit 319c0d4

Please sign in to comment.