1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Make docs installation optional

This commit is contained in:
Virgil Dupras
2017-06-20 11:49:11 -04:00
parent a82a19e074
commit 35ea499857
2 changed files with 11 additions and 3 deletions

View File

@@ -209,7 +209,11 @@ class DupeGuru(QObject):
def showHelpTriggered(self):
base_path = platform.HELP_PATH
url = QUrl.fromLocalFile(op.abspath(op.join(base_path, 'index.html')))
help_path = op.abspath(op.join(base_path, 'index.html'))
if op.exists(help_path):
url = QUrl.fromLocalFile(help_path)
else:
url = QUrl('https://www.hardcoded.net/dupeguru/help/en/')
QDesktopServices.openUrl(url)
#--- model --> view