mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 13:14:27 +03:00
Increase wait time of temporary file deletion
Increase wait time to 4 seconds from 2 seconds for the deletion of the temporary file made from .show(). The Windows default image viewer at times can take longer than 2 seconds to open and display an image causing the image to never display for the user.
This commit is contained in:
parent
a33dc56560
commit
4279c74289
|
@ -141,7 +141,7 @@ class WindowsViewer(Viewer):
|
||||||
def get_command(self, file, **options):
|
def get_command(self, file, **options):
|
||||||
return (
|
return (
|
||||||
f'start "Pillow" /WAIT "{file}" '
|
f'start "Pillow" /WAIT "{file}" '
|
||||||
"&& ping -n 2 127.0.0.1 >NUL "
|
"&& ping -n 4 127.0.0.1 >NUL "
|
||||||
f'&& del /f "{file}"'
|
f'&& del /f "{file}"'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user