[core] re-enable minimize of widgets
by default, allow toggling the minimized state of a widget via the middle mouse and draw a single unicode char instead of the actual widget, maintaining all states. fixes #661
This commit is contained in:
parent
45d8ed23c9
commit
34dadadf90
6 changed files with 48 additions and 14 deletions
|
@ -19,6 +19,7 @@ import core.module
|
|||
import core.input
|
||||
import core.event
|
||||
|
||||
import util.format
|
||||
|
||||
started = False
|
||||
|
||||
|
@ -110,6 +111,10 @@ def main():
|
|||
modules.reverse()
|
||||
|
||||
output.modules(modules)
|
||||
|
||||
if util.format.asbool(config.get("engine.collapsible", True)) == True:
|
||||
core.input.register(None, core.input.MIDDLE_MOUSE, output.toggle_minimize)
|
||||
|
||||
core.event.trigger("start")
|
||||
started = True
|
||||
while True:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue