Refactor the document window controller and the prefs controller. Some regression still in there.

This commit is contained in:
Damiano Galassi committed 2018-02-08 17:50:39 +01:00
1 parent cd27e2ce52
commit 94f5f85124
49 files changed
+2505 -2379

No files matched your search

+2 -2
View File
@@ -232,10 +232,10 @@ class ChapterSearchController: NSWindowController, NSTableViewDataSource, NSTabl
return result.title
}
else if tableColumn?.identifier.rawValue == "chaptercount" {
return "\(result.chapters.count)".monospacedAttributedString()
return "\(result.chapters.count)".smallMonospacedAttributedString()
}
else if tableColumn?.identifier.rawValue == "duration" {
return StringFromTime(Int64(result.duration), 1000).monospacedAttributedString()
return StringFromTime(Int64(result.duration), 1000).smallMonospacedAttributedString()
}
else if tableColumn?.identifier.rawValue == "confirmations" {
return NSNumber(value: result.confimations)