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

+1 -1
View File
@@ -414,7 +414,7 @@ final class MetadataSearchController: NSWindowController, NSTableViewDataSource,
}
private func toggleUI(items: [NSControl], state: Bool) {
items.forEach { $0.isEnabled = true }
items.forEach { $0.isEnabled = state }
}
private func disableUI() {
@@ -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)
+1
View File
@@ -110,6 +110,7 @@ final class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDel
for script in self.scripts {
script.resumeExecution(withResult: "Completed")
}
self.scripts.removeAll()
}
nc.addObserver(forName: Queue.Failed, object: queue, queue: main) { (note) in