mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Make AccountManager and ArticleThemesManager self-initing.
This commit is contained in:
@@ -16,7 +16,7 @@ public extension Notification.Name {
|
||||
|
||||
final class ArticleThemesManager: NSObject, NSFilePresenter {
|
||||
|
||||
static var shared: ArticleThemesManager!
|
||||
static let shared = ArticleThemesManager()
|
||||
public let folderPath: String
|
||||
|
||||
lazy var presentedItemOperationQueue = OperationQueue.main
|
||||
@@ -49,8 +49,9 @@ final class ArticleThemesManager: NSObject, NSFilePresenter {
|
||||
}
|
||||
}
|
||||
|
||||
init(folderPath: String) {
|
||||
self.folderPath = folderPath
|
||||
override init() {
|
||||
let folderURL = AppConfig.dataSubfolder(named: "Themes")
|
||||
self.folderPath = folderURL.path
|
||||
self.currentTheme = ArticleTheme.defaultTheme
|
||||
|
||||
super.init()
|
||||
|
||||
Reference in New Issue
Block a user