mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Update URLs in UI's main window
This commit is contained in:
parent
5faf79766f
commit
cb4754a3f9
@ -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"]
|
||||
|
||||
@ -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"])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user