Skip to content

Commit 94e5ad0

Browse files
authored
fix #1131 (#1135)
1 parent a7648e3 commit 94e5ad0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/LunaTranslator/gui/translatorUI.py

+2
Original file line numberDiff line numberDiff line change
@@ -1247,6 +1247,8 @@ def afterrange(self, clear, rect):
12471247
self.showhideocrrange()
12481248
if globalconfig["ocrafterrangeselect"]:
12491249
self.startTranslater()
1250+
if not globalconfig["keepontop"]:
1251+
windows.SetForegroundWindow(self.winid)
12501252

12511253
def startTranslater(self):
12521254
if gobject.baseobject.textsource:

0 commit comments

Comments
 (0)