diff options
| author | troido <troido@protonmail.com> | 2018-07-29 12:26:54 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2018-07-29 12:26:54 +0200 |
| commit | 7a11c5be7b4627c38945e55e25552bd5de728967 (patch) | |
| tree | 35f5783ebd9d6d538823ca6bbe338ba09cba3585 /asciifarm/client/display/info.py | |
| parent | d5e2d9798e01a6b2b65c995407e7d1f6f1a91983 (diff) | |
the info widget is now responsible for checking redundancy
Diffstat (limited to 'asciifarm/client/display/info.py')
| -rw-r--r-- | asciifarm/client/display/info.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/asciifarm/client/display/info.py b/asciifarm/client/display/info.py index ded985d..378bcea 100644 --- a/asciifarm/client/display/info.py +++ b/asciifarm/client/display/info.py @@ -6,13 +6,17 @@ class Info: self.changed = False self.lines = [] self.widget = None + self.lastString = None def setWidget(self, widget): self.widget = widget def showString(self, string): + if string == self.lastString: + return self.lines = string.split('\n') self.widget.change() + self.lastString = string def update(self): win = self.widget.getWin() |
