transaction_dialog: hide broadcast button when offline
This commit is contained in:
parent
d3f696c301
commit
b5c31cd031
|
@ -178,6 +178,7 @@ class TxDialog(QDialog):
|
||||||
|
|
||||||
# if we are not synchronized, we cannot tell
|
# if we are not synchronized, we cannot tell
|
||||||
if self.parent.network is None or not self.parent.network.is_running() or not self.parent.network.is_connected():
|
if self.parent.network is None or not self.parent.network.is_running() or not self.parent.network.is_connected():
|
||||||
|
self.broadcast_button.hide() # cannot broadcast when offline
|
||||||
return
|
return
|
||||||
if not self.wallet.up_to_date:
|
if not self.wallet.up_to_date:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue