Simple fix for GUI plugin

This commit is contained in:
Arinerron 2018-04-22 20:45:25 -07:00
parent 36d9ebd4f1
commit a5dbf73df4
No known key found for this signature in database
GPG Key ID: 99383627861C62F0
2 changed files with 5 additions and 3 deletions

View File

@ -73,6 +73,7 @@ def openGUI():
nodeInfo = Frame(root)
keyInfo = Frame(root)
print(pluginapi.get_onionr().get_hostname())
idText = pluginapi.get_onionr().get_hostname()
idEntry = Entry(nodeInfo)

View File

@ -561,8 +561,9 @@ class Onionr:
with open('./data/hs/hostname', 'r') as hostname:
retVal = hostname.read()
except FileNotFoundError:
return retVal
retVal = None
return retVal
def addFile(self):
'''command to add a file to the onionr network'''
if len(sys.argv) >= 2:
@ -576,6 +577,6 @@ class Onionr:
else:
print(new)
self.onionrCore.insertBlock(new, header='bin')
Onionr()