nncli

NextCloud Notes Command Line Interface
git clone git://git.danielmoch.com/nncli.git
Log | Files | Refs | LICENSE

commit 5f0d203b3f2a21e8f5659c8e7ea6b7fa21dd2c2d
parent 8a908414bdb5c6f72b3f00adbf3a28db7d53676d
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Mon, 11 Feb 2019 05:36:35 -0500

Correct logic in _log_timeout

Logic was reversed and would only attempt to pop off an empty stack.
This commit pops when the stack actually has something in it.

Thanks to k1w1 for the bug report.

Diffstat:
Mnncli/gui.py | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/nncli/gui.py b/nncli/gui.py @@ -897,8 +897,7 @@ def _log_timeout(self, loop, arg): self._gui_footer_log_clear() self.logs = [] else: - # for some reason having problems with this being empty? - if not self.logs: + if self.logs: self.logs.pop(0) log_pile = []