Always show Connections in Dashboard

This commit is contained in:
世界
2025-12-06 20:14:34 +08:00
parent f1fa3cbbdf
commit 52efbd97d2
4 changed files with 6 additions and 23 deletions
@@ -12,8 +12,7 @@ public struct ButtonVisibilityState {
public mutating func update(
profile: ExtensionProfile?,
commandClient: CommandClient,
requireAnyConnection: Bool = false
commandClient: CommandClient
) {
guard let profile else {
reset()
@@ -25,7 +24,7 @@ public struct ButtonVisibilityState {
let isConnected = ApplicationLibrary.inPreview || profile.status.isConnectedStrict
showConnectionsButton = isConnected && (!requireAnyConnection || commandClient.hasAnyConnection)
showConnectionsButton = isConnected
showGroupsButton = isConnected && (commandClient.groups?.isEmpty == false)
}