Simple fix for GUI plugin
parent
36d9ebd4f1
commit
a5dbf73df4
|
@ -73,6 +73,7 @@ def openGUI():
|
||||||
nodeInfo = Frame(root)
|
nodeInfo = Frame(root)
|
||||||
keyInfo = Frame(root)
|
keyInfo = Frame(root)
|
||||||
|
|
||||||
|
print(pluginapi.get_onionr().get_hostname())
|
||||||
idText = pluginapi.get_onionr().get_hostname()
|
idText = pluginapi.get_onionr().get_hostname()
|
||||||
|
|
||||||
idEntry = Entry(nodeInfo)
|
idEntry = Entry(nodeInfo)
|
||||||
|
|
|
@ -561,8 +561,9 @@ class Onionr:
|
||||||
with open('./data/hs/hostname', 'r') as hostname:
|
with open('./data/hs/hostname', 'r') as hostname:
|
||||||
retVal = hostname.read()
|
retVal = hostname.read()
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
return retVal
|
retVal = None
|
||||||
|
return retVal
|
||||||
|
|
||||||
def addFile(self):
|
def addFile(self):
|
||||||
'''command to add a file to the onionr network'''
|
'''command to add a file to the onionr network'''
|
||||||
if len(sys.argv) >= 2:
|
if len(sys.argv) >= 2:
|
||||||
|
@ -576,6 +577,6 @@ class Onionr:
|
||||||
else:
|
else:
|
||||||
print(new)
|
print(new)
|
||||||
self.onionrCore.insertBlock(new, header='bin')
|
self.onionrCore.insertBlock(new, header='bin')
|
||||||
|
|
||||||
|
|
||||||
Onionr()
|
Onionr()
|
||||||
|
|
Loading…
Reference in New Issue