Fix OutboundGroup equality check
This commit is contained in:
@@ -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).")
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user