Skip to content

Commit

Permalink
don't deal with the SLP status in fusion
Browse files Browse the repository at this point in the history
This is redundant data as the SLP tokens are laready color coded in the UTXO list. Removing it decouples the fusion code a bit from the internal implementation (DataRoles...) of the UTXO list).
  • Loading branch information
PiRK committed Dec 16, 2022
1 parent e21a160 commit df898a5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions electroncash_plugins/fusion/qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,17 +388,13 @@ def utxo_list_item_setup(self, utxo_list, item, utxo, name):

wallet = utxo_list.wallet
fuse_depth = Conf(wallet).fuse_depth
frozenstring = item.data(0, utxo_list.DataRoles.frozen_flags) or ""
is_slp = "s" in frozenstring
is_fused = self.is_fuz_coin(wallet, utxo, require_depth=fuse_depth - 1)
is_partially_fused = (
is_fused if fuse_depth <= 1 else self.is_fuz_coin(wallet, utxo)
)

item.setIcon(col, QIcon())
if is_slp:
item.setText(col, _("SLP Token"))
elif is_fused:
if is_fused:
item.setText(col, _("Fused"))
item.setIcon(col, icon_fusion_logo)
elif is_partially_fused:
Expand Down

0 comments on commit df898a5

Please sign in to comment.