mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-01-18 22:49:10 +00:00
Retain profiles order, no active on top
This commit is contained in:
parent
e8f65e9db0
commit
ebe8ae3d29
@ -117,16 +117,16 @@ extension OrganizerView {
|
||||
|
||||
private var sortedHeaders: [Profile.Header] {
|
||||
profileManager.headers
|
||||
// .sorted()
|
||||
.sorted {
|
||||
if profileManager.isActiveProfile($0.id) {
|
||||
return true
|
||||
} else if profileManager.isActiveProfile($1.id) {
|
||||
return false
|
||||
} else {
|
||||
return $0 < $1
|
||||
}
|
||||
}
|
||||
.sorted()
|
||||
// .sorted {
|
||||
// if profileManager.isActiveProfile($0.id) {
|
||||
// return true
|
||||
// } else if profileManager.isActiveProfile($1.id) {
|
||||
// return false
|
||||
// } else {
|
||||
// return $0 < $1
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
private func removeProfiles(at offsets: IndexSet) {
|
||||
|
Loading…
Reference in New Issue
Block a user