Update message when desired mod is not available to indicate it will be opened in the browser.

This commit is contained in:
Storm Dragon 2025-01-15 08:55:28 -05:00
parent 18279b6e7b
commit c83714866d

View File

@ -1249,7 +1249,7 @@ class DoomLauncher(QMainWindow):
message = [ message = [
f"You are missing the \"{dep['file']}\" Package.\n", f"You are missing the \"{dep['file']}\" Package.\n",
f"You can get it from \"{dep['url']}\"\n", f"You can get it from \"{dep['url']}\"\n",
"The URL has been copied to the clipboard.\n" "The URL will now open in your browser.\n"
] ]
message.extend(f"{msg}\n" for msg in dep.get('messages', [])) message.extend(f"{msg}\n" for msg in dep.get('messages', []))
@ -1259,8 +1259,7 @@ class DoomLauncher(QMainWindow):
"".join(message) "".join(message)
) )
# Copy URL to clipboard (platform-specific implementation needed) # Open the URL in browser
# For now, try to open the URL in browser
try: try:
webbrowser.open(dep['url']) webbrowser.open(dep['url'])
except Exception: except Exception: