pygui: fixed issue in task handling a returned boolean value, should be doing a none check

This commit is contained in:
Blake Harnden 2020-08-03 16:29:35 -07:00
parent f41ce8e3a6
commit 4bcaa32fdb

View file

@ -38,7 +38,7 @@ class ProgressTask:
values = self.task(*self.args) values = self.task(*self.args)
if values is None: if values is None:
values = () values = ()
elif values and not isinstance(values, tuple): elif values is not None and not isinstance(values, tuple):
values = (values,) values = (values,)
if self.callback: if self.callback:
self.app.after(0, self.callback, *values) self.app.after(0, self.callback, *values)