Change so that we are using the ArticleTheme definition of the suffix

This commit is contained in:
Maurice Parker
2021-09-12 13:30:15 -05:00
parent 9851629ec9
commit 3a09ff2db7

View File

@@ -320,7 +320,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations,
}
func application(_ sender: NSApplication, openFile filename: String) -> Bool {
guard filename.hasSuffix(".nnwtheme") else { return false }
guard filename.hasSuffix(ArticleTheme.nnwThemeSuffix) else { return false }
importTheme(filename: filename)
return true
}