Photo editor fixes

This commit is contained in:
Ilya Laktyushin
2020-06-08 13:30:18 +03:00
parent f529ec0793
commit e7b181e12a
8 changed files with 71 additions and 26 deletions

View File

@@ -543,7 +543,7 @@ const CGFloat TGPhotoPaintStickerKeyboardSize = 260.0f;
- (TGPhotoEditorTab)availableTabs
{
TGPhotoEditorTab result = TGPhotoEditorPaintTab | TGPhotoEditorEraserTab | TGPhotoEditorTextTab;
if (_enableStickers) {
if (_enableStickers && _stickersContext != nil) {
result |= TGPhotoEditorStickerTab;
}
return result;