BUG: Only set title in ImageShow.DisplayViewer when title provided

This commit is contained in:
DWesl 2022-02-06 12:03:36 -05:00
parent b582806887
commit 5588f572de

View File

@ -269,7 +269,7 @@ class DisplayViewer(UnixViewer):
else: else:
raise TypeError("Missing required argument: 'path'") raise TypeError("Missing required argument: 'path'")
args = ["display"] args = ["display"]
if "title" in options: if "title" in options and options["title"] is not None:
args += ["-name", options["title"]] args += ["-name", options["title"]]
args.append(path) args.append(path)