Skip to content

Commit

Permalink
Fix docs URL (#1446)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkbo authored May 16, 2023
2 parents 76daa3f + 70ea5e0 commit 4371d12
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions novelwriter/gui/mainmenu.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,14 +872,9 @@ def _buildHelpMenu(self):
self.helpMenu.addSeparator()

# Help > User Manual (Online)
if novelwriter.__version__[-2] == "f":
docUrl = f"{novelwriter.__docurl__}/en/stable/"
else:
docUrl = f"{novelwriter.__docurl__}/en/latest/"

self.aHelpDocs = QAction(self.tr("User Manual (Online)"), self)
self.aHelpDocs.setShortcut("F1")
self.aHelpDocs.triggered.connect(lambda: self._openWebsite(docUrl))
self.aHelpDocs.triggered.connect(lambda: self._openWebsite(novelwriter.__docurl__))
self.helpMenu.addAction(self.aHelpDocs)

# Help > User Manual (PDF)
Expand Down

0 comments on commit 4371d12

Please sign in to comment.