mirror of https://gitlab.com/openlp/openlp.git
renamed JS function
This commit is contained in:
parent
fee7797be1
commit
a835930990
|
@ -186,7 +186,7 @@ sup {
|
||||||
window.setTimeout(function(){timer = null;}, 400);
|
window.setTimeout(function(){timer = null;}, 400);
|
||||||
}
|
}
|
||||||
|
|
||||||
function show_text_complete(){
|
function show_text_completed(){
|
||||||
return (timer == null);
|
return (timer == null);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -353,7 +353,7 @@ class MainDisplay(Display):
|
||||||
# Wait for the fade to finish before geting the preview.
|
# Wait for the fade to finish before geting the preview.
|
||||||
# Important otherwise preview will have incorrect text if at all!
|
# Important otherwise preview will have incorrect text if at all!
|
||||||
if self.serviceItem.themedata and self.serviceItem.themedata.display_slide_transition:
|
if self.serviceItem.themedata and self.serviceItem.themedata.display_slide_transition:
|
||||||
while not self.frame.evaluateJavaScript(u'show_text_complete()'):
|
while not self.frame.evaluateJavaScript(u'show_text_completed()'):
|
||||||
self.application.process_events()
|
self.application.process_events()
|
||||||
# Wait for the webview to update before getting the preview.
|
# Wait for the webview to update before getting the preview.
|
||||||
# Important otherwise first preview will miss the background !
|
# Important otherwise first preview will miss the background !
|
||||||
|
|
Loading…
Reference in New Issue