Fix unsorted areas in macOS menu

This commit is contained in:
Davide De Rosa 2021-09-03 12:07:27 +02:00
parent 5cf593ed2b
commit f9e9df0e3b
2 changed files with 7 additions and 1 deletions

View File

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
### Fixed
- Location areas were not sorted in menu.
## 1.16.0 (2021-08-09)
### Added

View File

@ -339,7 +339,7 @@ class StatusMenu: NSObject {
itemGroup.representedObject = group
let submenuGroup = NSMenu()
for pool in group.pools {
for pool in group.pools.sortedPools() {
let title = !pool.secondaryId.isEmpty ? pool.secondaryId : L10n.Global.Values.default
let item = NSMenuItem(title: title, action: #selector(connectToPool(_:)), keyEquivalent: "")
if let extraCountry = pool.extraCountries?.first {