Fix OutboundGroup equality check

This commit is contained in:
世界 committed 2026-02-04 18:54:41 +08:00
1 parent 90ed1bb6c8
commit 1a4990fa51
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ struct StartServiceIntent: AppIntent {
static var title: LocalizedStringResource = "Start sing-box" static var title: LocalizedStringResource = "Start sing-box"
static var description = static var description =
IntentDescription("Start or reload sing-box servie with specified profile") IntentDescription("Start or reload sing-box service with specified profile")
static var parameterSummary: some ParameterSummary { static var parameterSummary: some ParameterSummary {
Summary("Start sing-box service with profile \(\.$profile).") Summary("Start sing-box service with profile \(\.$profile).")
+1 -1
View File
@@ -27,7 +27,7 @@ public struct OutboundGroup: Codable, Hashable {
} }
public static func == (lhs: OutboundGroup, rhs: OutboundGroup) -> Bool { public static func == (lhs: OutboundGroup, rhs: OutboundGroup) -> Bool {
lhs.hashValue == rhs.hashValue lhs.tag == rhs.tag && lhs.selected == rhs.selected && lhs.items.map(\.urlTestTime) == rhs.items.map(\.urlTestTime)
} }
public var displayType: String { public var displayType: String {