Skip to content

Commit

Permalink
Namecoin: Warn user in DNS dialog if value too long
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Dec 12, 2019
1 parent 2a131be commit 53f285d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions electrum_nmc/electrum/gui/qt/configure_dns_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,10 @@ def update_byte_usage(self):
usage = len(value)
usage_text = str(usage)

if usage > 520:
usage_text = "<span style='color: red;'>\u26A0 " + usage_text + "</span>"

label = self.ui.labelBytes
label.setTextFormat(Qt.RichText)
label.setText(usage_text)

0 comments on commit 53f285d

Please sign in to comment.