Unverified Commit a012be98 authored by AragonSnow's avatar AragonSnow Committed by GitHub
Browse files

修复导入txt、md文件时没有触发文本替换的问题 Fixed the issue where text replacement was n… (#967)

* 修复导入txt、md文件时没有触发文本替换的问题 Fixed the issue where text replacement was not triggered when importing txt and md files.

* 去除L1388
parent 44591903
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1395,6 +1395,11 @@ class MainWindow(mainwindow_cls):
                    msg += '\n' + self.tr('Unmatched pages: ') + '\n'
                    msg += '\n'.join(match_rst['unmatched_pages'])
                msg = msg.strip()

            for pagename in matched_pages:
                for blk in self.imgtrans_proj.pages[pagename]:
                    blk.translation = self.mtSubWidget.sub_text(blk.translation)
            
            create_info_dialog(msg)

        except Exception as e: