Fix a couple of regressions.
This commit is contained in:
4 files changed
+4
-3
No files matched your search
@@ -414,7 +414,7 @@ final class MetadataSearchController: NSWindowController, NSTableViewDataSource,
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func toggleUI(items: [NSControl], state: Bool) {
|
private func toggleUI(items: [NSControl], state: Bool) {
|
||||||
items.forEach { $0.isEnabled = true }
|
items.forEach { $0.isEnabled = state }
|
||||||
}
|
}
|
||||||
|
|
||||||
private func disableUI() {
|
private func disableUI() {
|
||||||
|
|||||||
@@ -427,7 +427,7 @@ class MovieViewController: NSViewController, NSTableViewDataSource, ExpandedTabl
|
|||||||
if index != -1 {
|
if index != -1 {
|
||||||
popUpButton.selectItem(at: Int(index))
|
popUpButton.selectItem(at: Int(index))
|
||||||
} else {
|
} 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: "")
|
let item = NSMenuItem(title: title, action: nil, keyEquivalent: "")
|
||||||
item.tag = -1
|
item.tag = -1
|
||||||
popUpButton.menu?.addItem(item)
|
popUpButton.menu?.addItem(item)
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ final class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDel
|
|||||||
for script in self.scripts {
|
for script in self.scripts {
|
||||||
script.resumeExecution(withResult: "Completed")
|
script.resumeExecution(withResult: "Completed")
|
||||||
}
|
}
|
||||||
|
self.scripts.removeAll()
|
||||||
}
|
}
|
||||||
|
|
||||||
nc.addObserver(forName: Queue.Failed, object: queue, queue: main) { (note) in
|
nc.addObserver(forName: Queue.Failed, object: queue, queue: main) { (note) in
|
||||||
|
|||||||
+1
-1
Submodule MP42Foundation updated: d303a4ea33...ddac18c086.
Reference in new issue
Block a user