Skip to content

Commit

Permalink
Merge branch 'bugfix/saveMenuCrash' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeMatt committed Jan 12, 2025
2 parents 5e54226 + eb2bf0f commit 39b8447
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public extension PVFile {
fileSize = attr.fileSize()

// Cache the size only if we're not frozen
if !self.isFrozen, let realm = self.realm {
if !self.isFrozen, let realm = self.realm, !realm.isInWriteTransaction {
do {
try realm.write {
self.sizeCache = Int(fileSize)
Expand Down

0 comments on commit 39b8447

Please sign in to comment.