Fix OutboundGroup equality check

This commit is contained in:
世界
2026-02-04 18:54:41 +08:00
parent 90ed1bb6c8
commit 1a4990fa51
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ struct StartServiceIntent: AppIntent {
static var title: LocalizedStringResource = "Start sing-box"
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 {
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 {
lhs.hashValue == rhs.hashValue
lhs.tag == rhs.tag && lhs.selected == rhs.selected && lhs.items.map(\.urlTestTime) == rhs.items.map(\.urlTestTime)
}
public var displayType: String {