Various fixes

This commit is contained in:
Ilya Laktyushin
2023-09-17 00:01:09 +04:00
parent 54375b7682
commit bd20e2f636
11 changed files with 57 additions and 23 deletions

View File

@@ -483,6 +483,10 @@ public final class DrawingEntitiesView: UIView, TGPhotoDrawingEntitiesView {
public func remove(uuid: UUID, animated: Bool = false, announce: Bool = true) {
if let view = self.getView(for: uuid) {
if self.selectedEntityView === view {
if let stickerEntityView = self.selectedEntityView as? DrawingStickerEntityView {
stickerEntityView.onDeselection()
}
self.selectedEntityView = nil
self.selectionChanged(nil)
self.hasSelectionChanged(false)