Update message when desired mod is not available to indicate it will be opened in the browser.
This commit is contained in:
parent
18279b6e7b
commit
c83714866d
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user