Added more system checks and help now opens the documentation website

This commit is contained in:
Veronica K. B. Olsen
2019-10-24 21:13:11 +02:00
parent 3ae87b6cf4
commit 4a98f58a20
7 changed files with 42 additions and 649 deletions
+1 -13
View File
@@ -13,7 +13,7 @@
import logging
import nw
from PyQt5.QtCore import Qt, QUrl
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QTextBrowser
from PyQt5.QtGui import QTextOption, QFont, QPalette, QColor
@@ -91,10 +91,6 @@ class GuiDocViewer(QTextBrowser):
def loadText(self, tHandle):
if tHandle == "Help":
self.loadHelp()
return True
tItem = self.theProject.getItem(tHandle)
if tItem is None:
logger.warning("Item not found")
@@ -118,14 +114,6 @@ class GuiDocViewer(QTextBrowser):
return True
def loadHelp(self):
self.clearViewer()
self.setSearchPaths([self.mainConf.helpPath])
self.setSource(QUrl("index.html"))
return True
##
# Internal Functions
##