hide urls when CLOSE_WINDOW_AFTER is False

This commit is contained in:
Kim Oliver Drechsel 2021-11-02 20:43:14 +01:00
parent 533b7dc0fc
commit a3302cfe0d

View File

@ -28,8 +28,11 @@ def generate_url(base_url: str = 'https://prnt.sc/'):
for _ in range(NUMBER_OF_LINKS_TO_GENERATE):
URL = generate_url()
print(URL)
if URL_AUTO_OPEN is True:
if not CLOSE_WINDOW_AFTER:
print(URL)
if URL_AUTO_OPEN:
webbrowser.open(URL)
if not CLOSE_WINDOW_AFTER: