fix: unpopulated account list issue, copy address button not working.

This commit is contained in:
Sergio Chouhy 2026-06-04 18:58:54 -03:00
parent ab7f0c617a
commit 4f6b9e8838
6 changed files with 5408 additions and 242 deletions

5628
flake.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@
inputs = {
logos-module-builder.url = "github:logos-co/logos-module-builder";
nix-bundle-lgx.url = "github:logos-co/nix-bundle-lgx";
logos-execution-zone-module.url = "github:logos-blockchain/logos-execution-zone-module";
logos_execution_zone.url = "github:logos-blockchain/logos-execution-zone-module";
};
outputs = inputs@{ logos-module-builder, ... }:

View File

@ -99,6 +99,12 @@ Rectangle {
color: Theme.palette.background
// Used as a clipboard helper TextEdit.copy() works in the GUI process.
TextEdit {
id: clipHelper
visible: false
}
StackView {
id: stackView
anchors.fill: parent
@ -175,7 +181,9 @@ Rectangle {
})
}
onCopyRequested: (copyText) => {
if (backend) backend.copyToClipboard(copyText)
clipHelper.text = copyText
clipHelper.selectAll()
clipHelper.copy()
}
}
}

View File

@ -33,7 +33,7 @@ ItemDelegate {
spacing: Theme.spacing.small
LogosText {
text: model.name
text: model.name ?? ""
font.pixelSize: Theme.typography.secondaryText
font.bold: true
}
@ -68,7 +68,7 @@ ItemDelegate {
id: addressLabel
Layout.fillWidth: true
verticalAlignment: Text.AlignVCenter
text: model.address
text: model.address ?? ""
font.pixelSize: Theme.typography.secondaryText
color: Theme.palette.textMuted
elide: Text.ElideMiddle

View File

@ -75,10 +75,10 @@ Rectangle {
id: listView
Layout.fillWidth: true
Layout.fillHeight: true
visible: (accountModel && accountModel.count > 0) || !accountModel
visible: count > 0 || !root.accountModel
clip: true
spacing: Theme.spacing.small
model: accountModel && accountModel.count > 0 ? root.accountModel: null
model: root.accountModel
delegate: AccountDelegate {
width: listView.width

View File

@ -21,7 +21,7 @@ Rectangle {
signal transferPrivateOwnedRequested(string fromAccountId, string toAccountId, string amount)
signal copyRequested(string copyText)
readonly property int fromFilterCount: (fromAccountModel && fromAccountModel.count) ? fromAccountModel.count : 0
readonly property int fromFilterCount: fromCombo.count
QtObject {
id: d