mirror of
https://git.yoctoproject.org/poky
synced 2026-03-16 20:29:41 +01:00
bitbake: knotty: Reduce refresh of footer
When displaying larger number of events the client can get caught up in displaying the footer, then immediately overwriting it. To avoid this, wait for pauses in the event stream before displaying the footer to give a slightly more friendly feel to the UI. (Bitbake rev: 5d706c7cd6ee8d83b67ff18312d4c8119bea8878) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -306,8 +306,10 @@ def main(server, eventHandler, params, tf = TerminalFilter):
|
||||
|
||||
while True:
|
||||
try:
|
||||
termfilter.updateFooter()
|
||||
event = eventHandler.waitEvent(0.25)
|
||||
event = eventHandler.waitEvent(0)
|
||||
if event is None:
|
||||
termfilter.updateFooter()
|
||||
event = eventHandler.waitEvent(0.25)
|
||||
if event is None:
|
||||
if main.shutdown > 1:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user