Skip to content

Commit

Permalink
Combo presets should also include values from TagInfo: openstreetmap/…
Browse files Browse the repository at this point in the history
  • Loading branch information
bryceco committed Oct 23, 2021
1 parent e602f40 commit bba2cab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Shared/PresetsDatabase/PresetsDatabase+TableView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,9 @@ extension PresetsDatabase {
if type == "typeCombo", ignore.contains(key) {
return nil
}
let options = dict["options"] as? [String] ?? taginfoFor(key: key, searchKeys: false, update: update)
var options = taginfoFor(key: key, searchKeys: false, update: update)
let options2 = (dict["options"] as? [String] ?? []).filter({ !options.contains($0) })
options = options2 + options
let strings = dict["strings"] as? [String: String]
let tag = comboWith(
label: label,
Expand Down

0 comments on commit bba2cab

Please sign in to comment.