mirror of
https://github.com/yggdrasil-network/yggdrasil-ios.git
synced 2025-04-28 22:25:10 +03:00
More updates
This commit is contained in:
parent
5fbb735f56
commit
0bea3a1613
9 changed files with 150 additions and 38 deletions
|
@ -112,6 +112,7 @@ class CrossPlatformAppDelegate: PlatformAppDelegate, ObservableObject {
|
|||
self.requestSummaryIPC()
|
||||
} else if conn.status == .disconnecting || conn.status == .disconnected {
|
||||
self.clearStatus()
|
||||
self.yggdrasilEnabled = false
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -127,7 +128,7 @@ class CrossPlatformAppDelegate: PlatformAppDelegate, ObservableObject {
|
|||
|
||||
guard let savedManagers else {
|
||||
print("Expected to find saved managers but didn't")
|
||||
self.yggdrasilSupported = false
|
||||
// self.yggdrasilSupported = false
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -186,9 +187,7 @@ class CrossPlatformAppDelegate: PlatformAppDelegate, ObservableObject {
|
|||
self.yggdrasilSubnet = summary.subnet
|
||||
self.yggdrasilPublicKey = summary.publicKey
|
||||
self.yggdrasilPeers = summary.peers
|
||||
self.yggdrasilConnected = summary.peers.count > 0
|
||||
|
||||
print(self.yggdrasilPeers)
|
||||
self.yggdrasilConnected = summary.peers.filter { $0.up }.count > 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue