Merge branch 'main' into localize_strings

This commit is contained in:
Stuart Breckenridge committed 2023-02-06 20:02:32 +08:00
commit c45fd40eb5
3 files changed
+4

No files matched your search

Binary file not shown.
Binary file not shown.
@@ -77,6 +77,10 @@ public class ArticleThemeDownloader: Logging {
private func findThemeFile(in searchPath: String) -> String? {
if let directoryContents = FileManager.default.enumerator(atPath: searchPath) {
while let file = directoryContents.nextObject() as? String {
if file.hasPrefix("__MACOSX/") {
logger.debug("Ignoring theme file in __MACOSX folder.")
continue
}
if file.hasSuffix(".nnwtheme") {
return file
}