mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-29 14:34:13 +03:00
BUG: Only set title in ImageShow.DisplayViewer when title provided
This commit is contained in:
parent
b582806887
commit
5588f572de
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user