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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user