diff options
| author | troido <troido@protonmail.com> | 2018-09-05 18:46:29 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2018-09-05 18:46:29 +0200 |
| commit | 3ed17230c18053efc1835a0030b8d280be53c31e (patch) | |
| tree | 92e74df53b4813d46fb812e53d55bd4f4305e633 /asciifarm/client/display/widget.py | |
| parent | c273d75cd7c8483f9a0f61e4e9ebe3066de48b4d (diff) | |
made win and argument to update and made it possible for windows to be hidden
Diffstat (limited to 'asciifarm/client/display/widget.py')
| -rw-r--r-- | asciifarm/client/display/widget.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/asciifarm/client/display/widget.py b/asciifarm/client/display/widget.py index 868514a..c5c0dfc 100644 --- a/asciifarm/client/display/widget.py +++ b/asciifarm/client/display/widget.py @@ -32,7 +32,7 @@ class Widget: return self.changed def update(self): - if not self.getWin(): + if not self.getWin() or self.getWin().hidden: return - self.impl.update() + self.impl.update(self.getWin()) self.changed = False |
