Fix a couple of regressions.

This commit is contained in:
Damiano Galassi committed 2019-03-14 08:25:41 +01:00
1 parent 45091616c8
commit 58e20d9903
4 files changed
+4 -3

No files matched your search

@@ -427,7 +427,7 @@ class MovieViewController: NSViewController, NSTableViewDataSource, ExpandedTabl
if index != -1 {
popUpButton.selectItem(at: Int(index))
} else {
let title = value ?? NSLocalizedString("Unknown", comment: "")
let title = value?.isEmpty ?? true ? NSLocalizedString("Unknown", comment: "") : value ?? NSLocalizedString("Unknown", comment: "")
let item = NSMenuItem(title: title, action: nil, keyEquivalent: "")
item.tag = -1
popUpButton.menu?.addItem(item)