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
|
from .liberation_theme import get_theme_icons
|
||||||
|
|
||||||
URLS: Dict[str, str] = {
|
URLS: Dict[str, str] = {
|
||||||
"Manual": "https://github.com/dcs-liberation/dcs_liberation/wiki",
|
"Manual": "https://github.com/dcs-retribution/dcs-retribution/wiki",
|
||||||
"Repository": "https://github.com/dcs-liberation/dcs_liberation",
|
"Repository": "https://github.com/dcs-retribution/dcs-retribution",
|
||||||
"ForumThread": "https://forums.eagle.ru/showthread.php?t=214834",
|
"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"]
|
LABELS_OPTIONS = ["Full", "Abbreviated", "Dot Only", "Neutral Dot", "Off"]
|
||||||
|
|||||||
@ -185,9 +185,7 @@ class QLiberationWindow(QMainWindow):
|
|||||||
self.openGithubAction = QAction("&Github Repo", self)
|
self.openGithubAction = QAction("&Github Repo", self)
|
||||||
self.openGithubAction.setIcon(CONST.ICONS["Github"])
|
self.openGithubAction.setIcon(CONST.ICONS["Github"])
|
||||||
self.openGithubAction.triggered.connect(
|
self.openGithubAction.triggered.connect(
|
||||||
lambda: webbrowser.open_new_tab(
|
lambda: webbrowser.open_new_tab(URLS["Repository"])
|
||||||
"https://github.com/dcs-liberation/dcs_liberation"
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
self.ukraineAction = QAction("&Ukraine", self)
|
self.ukraineAction = QAction("&Ukraine", self)
|
||||||
@ -265,10 +263,7 @@ class QLiberationWindow(QMainWindow):
|
|||||||
help_menu.addAction(self.openGithubAction)
|
help_menu.addAction(self.openGithubAction)
|
||||||
help_menu.addAction(self.ukraineAction)
|
help_menu.addAction(self.ukraineAction)
|
||||||
help_menu.addAction(
|
help_menu.addAction(
|
||||||
"&Releases",
|
"&Releases", lambda: webbrowser.open_new_tab(URLS["Releases"])
|
||||||
lambda: webbrowser.open_new_tab(
|
|
||||||
"https://github.com/dcs-liberation/dcs_liberation/releases"
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
help_menu.addAction(
|
help_menu.addAction(
|
||||||
"&Online Manual", lambda: webbrowser.open_new_tab(URLS["Manual"])
|
"&Online Manual", lambda: webbrowser.open_new_tab(URLS["Manual"])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user