Cache translations, fix translation popping
Completely refactor Translate View. Simplify bool logic into a state enum. Changelog-Fixed: Fix translation text popping Changelog-Added: Cache translations
This commit is contained in:
@@ -234,7 +234,11 @@ struct NoteContentView_Previews: PreviewProvider {
|
||||
}
|
||||
}
|
||||
|
||||
struct NoteArtifacts {
|
||||
struct NoteArtifacts: Equatable {
|
||||
static func == (lhs: NoteArtifacts, rhs: NoteArtifacts) -> Bool {
|
||||
return lhs.content == rhs.content
|
||||
}
|
||||
|
||||
let content: AttributedString
|
||||
let images: [URL]
|
||||
let invoices: [Invoice]
|
||||
|
||||
Reference in New Issue
Block a user