Various fixes

This commit is contained in:
Ilya Laktyushin
2023-07-05 17:26:20 +02:00
parent a480df3ed6
commit 6301b2ba64
5 changed files with 15 additions and 11 deletions

View File

@@ -1897,12 +1897,12 @@ public final class MediaEditorScreen: ViewController, UIDropInteractionDelegate
if let self, let controller = self.controller, values.gradientColors != nil, controller.previousSavedValues != values {
if !isSavingAvailable && controller.previousSavedValues == nil {
controller.previousSavedValues = values
controller.isSavingAvailable = false
} else {
self.hasAnyChanges = true
controller.isSavingAvailable = true
controller.requestLayout(transition: .animated(duration: 0.25, curve: .easeInOut))
}
controller.requestLayout(transition: .animated(duration: 0.25, curve: .easeInOut))
}
}