Skip to content

Commit

Permalink
attempt to fix acceptPriceButton still visible after accepting
Browse files Browse the repository at this point in the history
  • Loading branch information
gretzke committed Dec 9, 2019
1 parent 027a629 commit 030ae8a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plug_py/plug.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,14 @@ def acceptWindow(self, show):
self.ui.acceptPriceButton.setVisible(True)
self.ui.rejectButton.setVisible(True)
else:
self.updateInfo('')
self.ui.acceptPriceButton.setVisible(False)
self.updateInfo('')
self.ui.rejectButton.setVisible(False)

def resetToStart(self):
self.updateInfo('')
self.updateInfoCenter('')
self.ui.hourList.setVisible(False)
self.ui.hourList.setVisible(True)
self.ui.hourLabel.setVisible(False)
self.ui.infoCenterLabel.setVisible(False)
self.ui.selectButton.setVisible(False)
Expand Down Expand Up @@ -347,7 +347,7 @@ def run(self):
asyncio.set_event_loop(self.loop)
self.loop.run_until_complete(self.wsConnection())
else:
window.updateInfo('Error while connecting to smart socket')
window.updateInfo('Received wrong advertisement ID')
window.updateInfoCenter('')
except timeout:
window.updateInfo('No smart socket found')
Expand Down Expand Up @@ -518,6 +518,7 @@ async def initialized_P(self):
'Smart Contract verification failed')
return
else:
window.ui.acceptPriceButton.setVisible(False)
window.updateInfoCenter(
"Initializing Payment Channel...")
transactionCount = web3.eth.getTransactionCount(
Expand Down

0 comments on commit 030ae8a

Please sign in to comment.