[core] Rename events for more clarity

This commit is contained in:
tobi-wan-kenobi 2020-04-12 20:11:02 +02:00
parent b5b62c8827
commit 9e32cdef5d
4 changed files with 8 additions and 8 deletions

View file

@ -32,8 +32,8 @@ def handle_input(output):
modules[event['name']] = True
except ValueError:
pass
core.event.trigger('update-modules', modules.keys())
core.event.trigger('update')
core.event.trigger('update', modules.keys())
core.event.trigger('draw')
poll.unregister(sys.stdin.fileno())
@ -58,8 +58,8 @@ def main():
output.modules(modules)
core.event.trigger('start')
while True:
output.update()
core.event.trigger('update')
core.event.trigger('draw')
output.wait(config.interval())
core.event.trigger('stop')