Update URLs in UI's main window

This commit is contained in:
Raffson 2022-09-18 18:39:57 +02:00
parent 5faf79766f
commit cb4754a3f9
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99
2 changed files with 6 additions and 10 deletions

View File

@ -6,10 +6,11 @@ from PySide2.QtGui import QPixmap
from .liberation_theme import get_theme_icons
URLS: Dict[str, str] = {
"Manual": "https://github.com/dcs-liberation/dcs_liberation/wiki",
"Repository": "https://github.com/dcs-liberation/dcs_liberation",
"Manual": "https://github.com/dcs-retribution/dcs-retribution/wiki",
"Repository": "https://github.com/dcs-retribution/dcs-retribution",
"ForumThread": "https://forums.eagle.ru/showthread.php?t=214834",
"Issues": "https://github.com/dcs-liberation/dcs_liberation/issues",
"Issues": "https://github.com/dcs-retribution/dcs-retribution/issues",
"Releases": "https://github.com/dcs-retribution/dcs-retribution/releases",
}
LABELS_OPTIONS = ["Full", "Abbreviated", "Dot Only", "Neutral Dot", "Off"]

View File

@ -185,9 +185,7 @@ class QLiberationWindow(QMainWindow):
self.openGithubAction = QAction("&Github Repo", self)
self.openGithubAction.setIcon(CONST.ICONS["Github"])
self.openGithubAction.triggered.connect(
lambda: webbrowser.open_new_tab(
"https://github.com/dcs-liberation/dcs_liberation"
)
lambda: webbrowser.open_new_tab(URLS["Repository"])
)
self.ukraineAction = QAction("&Ukraine", self)
@ -265,10 +263,7 @@ class QLiberationWindow(QMainWindow):
help_menu.addAction(self.openGithubAction)
help_menu.addAction(self.ukraineAction)
help_menu.addAction(
"&Releases",
lambda: webbrowser.open_new_tab(
"https://github.com/dcs-liberation/dcs_liberation/releases"
),
"&Releases", lambda: webbrowser.open_new_tab(URLS["Releases"])
)
help_menu.addAction(
"&Online Manual", lambda: webbrowser.open_new_tab(URLS["Manual"])