Ensure pre-middle-close-callback is called only once if it returns True

This commit is contained in:
Kovid Goyal 2020-07-23 21:16:59 +05:30
parent a3bc2c9d56
commit 9f4609aec2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -452,6 +452,7 @@ class CreateAnnotation:
if self.pre_middle_close_callback:
if not self.pre_middle_close_callback():
return
self.pre_middle_close_callback = None
self.unhide_handles()
m.style.display = 'none'
self.container.focus()