mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 09:21:39 +00:00
fix fee slider offline bug
This commit is contained in:
parent
c32f75a313
commit
c05c49a18f
1 changed files with 4 additions and 3 deletions
|
@ -905,9 +905,10 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
|
||||||
from electrum.util import fee_levels
|
from electrum.util import fee_levels
|
||||||
i = self.fee_slider.sliderPosition()
|
i = self.fee_slider.sliderPosition()
|
||||||
tooltip = fee_levels[i]
|
tooltip = fee_levels[i]
|
||||||
dynfee = self.network.dynfee(i)
|
if self.network:
|
||||||
if dynfee:
|
dynfee = self.network.dynfee(i)
|
||||||
tooltip += '\n' + self.format_amount(dynfee) + ' ' + self.base_unit() + '/kB'
|
if dynfee:
|
||||||
|
tooltip += '\n' + self.format_amount(dynfee) + ' ' + self.base_unit() + '/kB'
|
||||||
QToolTip.showText(QCursor.pos(), tooltip, self.fee_slider)
|
QToolTip.showText(QCursor.pos(), tooltip, self.fee_slider)
|
||||||
def slider_released():
|
def slider_released():
|
||||||
self.config.set_key('fee_level', self.fee_slider.sliderPosition(), False)
|
self.config.set_key('fee_level', self.fee_slider.sliderPosition(), False)
|
||||||
|
|
Loading…
Add table
Reference in a new issue