[modules/shell] do not default to "makewide"

to avoid unnecessarily wide shell modules, set "makewide" to false, if
it is not set at all.

fixes #775
This commit is contained in:
tobi-wan-kenobi 2021-03-18 15:29:06 +01:00
parent 65da1e2246
commit 4187bddad6

View file

@ -47,6 +47,9 @@ class Module(core.module.Module):
self.__output = "please wait..."
self.__current_thread = threading.Thread()
if self.parameter("scrolling.makewide") is None:
self.set("scrolling.makewide", False)
# LMB and RMB will update output regardless of timer
core.input.register(self, button=core.input.LEFT_MOUSE, cmd=self.update)
core.input.register(self, button=core.input.RIGHT_MOUSE, cmd=self.update)