mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Keep the editor responsive to user input by spinning the event loop after every line is re-highlighted.
This commit is contained in:
parent
3c0a6499a3
commit
f12d0cf155
@ -65,4 +65,6 @@ class SyntaxHighlighter(QSyntaxHighlighter):
|
||||
except:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
finally:
|
||||
QApplication.processEvents() # Try to keep the editor responsive to user input
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user