File tree Expand file tree Collapse file tree 4 files changed +10
-8
lines changed
Extensions/BDK+Extensions Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ extension CbfClient {
28
28
. build ( wallet: wallet)
29
29
30
30
components. node. run ( )
31
-
31
+
32
32
components. client. startBackgroundMonitoring ( )
33
33
34
34
return ( client: components. client, node: components. node)
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ class WalletViewModel {
108
108
if progress > 0 {
109
109
self . isKyotoConnected = true
110
110
}
111
-
111
+
112
112
// Update sync state based on Kyoto progress
113
113
if progress >= 100 {
114
114
self . walletSyncState = . synced
@@ -125,7 +125,7 @@ class WalletViewModel {
125
125
) { [ weak self] notification in
126
126
if let connected = notification. userInfo ? [ " connected " ] as? Bool {
127
127
self ? . isKyotoConnected = connected
128
-
128
+
129
129
// When Kyoto connects, update sync state if needed
130
130
if connected && self ? . walletSyncState == . notStarted {
131
131
// Check current progress to determine state
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ struct ActivityHomeHeaderView: View {
40
40
} else if walletSyncState == . syncing {
41
41
HStack {
42
42
if isKyotoClient {
43
- if progress < 100.0 { // Kyoto progress is percent
43
+ if progress < 100.0 { // Kyoto progress is percent
44
44
if currentBlockHeight > 0 {
45
45
Text ( " Block \( currentBlockHeight) " )
46
46
. padding ( . trailing, - 5.0 )
@@ -55,7 +55,7 @@ struct ActivityHomeHeaderView: View {
55
55
. transition ( . opacity)
56
56
}
57
57
}
58
- } else if progress < 1.0 { // Esplora progress is fraction
58
+ } else if progress < 1.0 { // Esplora progress is fraction
59
59
Text ( " \( inspectedScripts) " )
60
60
. padding ( . trailing, - 5.0 )
61
61
. fontWeight ( . semibold)
@@ -71,7 +71,8 @@ struct ActivityHomeHeaderView: View {
71
71
}
72
72
73
73
if !isKyotoClient || ( isKyotoClient && progress > 0 ) {
74
- let percent : Int = isKyotoClient
74
+ let percent : Int =
75
+ isKyotoClient
75
76
? Int ( progress. rounded ( ) )
76
77
: Int ( ( progress * 100 ) . rounded ( ) )
77
78
HStack ( spacing: 0 ) {
Original file line number Diff line number Diff line change @@ -137,8 +137,9 @@ struct WalletView: View {
137
137
. onAppear {
138
138
// Seed height from AppStorage on first show to avoid displaying 0 when Kyoto is active
139
139
if viewModel. isKyotoClient,
140
- viewModel. currentBlockHeight == 0 ,
141
- kyotoLastHeight > 0 {
140
+ viewModel. currentBlockHeight == 0 ,
141
+ kyotoLastHeight > 0
142
+ {
142
143
viewModel. currentBlockHeight = UInt32 ( kyotoLastHeight)
143
144
}
144
145
}
You can’t perform that action at this time.
0 commit comments