1
0

Merge pull request #10287 from f321x/fix_cake_diagram

qt: allow opening BalanceDialog if warning is set and balance is 0
This commit is contained in:
ghost43
2025-10-31 13:45:08 +00:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -105,6 +105,10 @@ class BalanceToolButton(QToolButton, PieChartObject):
self._update_size()
self._warning = False
@property
def has_warning(self) -> bool:
return bool(self._warning)
def update_list(self, l, warning: bool):
self._warning = warning
self._list = l

View File

@@ -1804,7 +1804,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger, QtEventListener):
def show_balance_dialog(self):
balance = self.wallet.get_balances_for_piechart().total()
if balance == 0:
if balance == 0 and not self.balance_label.has_warning:
return
from .balance_dialog import BalanceDialog
d = BalanceDialog(self, wallet=self.wallet)