mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
kivy: do not cache fee dialog
This commit is contained in:
parent
73af7ac824
commit
b2c7d2d2cc
1 changed files with 5 additions and 10 deletions
|
@ -84,7 +84,6 @@ class ElectrumWindow(App):
|
||||||
blockchain_name = StringProperty('')
|
blockchain_name = StringProperty('')
|
||||||
fee_status = StringProperty('Fee')
|
fee_status = StringProperty('Fee')
|
||||||
blockchain_checkpoint = NumericProperty(0)
|
blockchain_checkpoint = NumericProperty(0)
|
||||||
_fee_dialog = None
|
|
||||||
|
|
||||||
auto_connect = BooleanProperty(False)
|
auto_connect = BooleanProperty(False)
|
||||||
def on_auto_connect(self, instance, x):
|
def on_auto_connect(self, instance, x):
|
||||||
|
@ -833,18 +832,14 @@ class ElectrumWindow(App):
|
||||||
popup.open()
|
popup.open()
|
||||||
|
|
||||||
def fee_dialog(self, label, dt):
|
def fee_dialog(self, label, dt):
|
||||||
if self._fee_dialog is None:
|
|
||||||
from .uix.dialogs.fee_dialog import FeeDialog
|
from .uix.dialogs.fee_dialog import FeeDialog
|
||||||
def cb():
|
def cb():
|
||||||
c = self.electrum_config
|
self.fee_status = self.electrum_config.get_fee_status()
|
||||||
self.fee_status = c.get_fee_status()
|
fee_dialog = FeeDialog(self, self.electrum_config, cb)
|
||||||
self._fee_dialog = FeeDialog(self, self.electrum_config, cb)
|
fee_dialog.open()
|
||||||
self._fee_dialog.open()
|
|
||||||
|
|
||||||
def on_fee(self, event, *arg):
|
def on_fee(self, event, *arg):
|
||||||
self.fee_status = self.electrum_config.get_fee_status()
|
self.fee_status = self.electrum_config.get_fee_status()
|
||||||
if self._fee_dialog:
|
|
||||||
self._fee_dialog.update_text()
|
|
||||||
|
|
||||||
def protected(self, msg, f, args):
|
def protected(self, msg, f, args):
|
||||||
if self.wallet.has_password():
|
if self.wallet.has_password():
|
||||||
|
|
Loading…
Add table
Reference in a new issue