Various fixes

This commit is contained in:
Ilya Laktyushin
2023-12-24 11:26:57 +04:00
parent 2757a49900
commit 3aeb5fafca
2 changed files with 7 additions and 8 deletions

View File

@@ -1045,8 +1045,9 @@ final class AvatarEditorScreenComponent: Component {
state.updated(transition: .easeInOut(duration: 0.2))
}
},
openColorPicker: { [weak state] in
if let state {
openColorPicker: { [weak self, weak state] in
if let self, let state {
self.endEditing(true)
state.editingColor = true
state.previousColor = state.selectedBackground
state.previousCustomColor = state.customColor