Disable drawing in sign up screen

This commit is contained in:
Ilya Laktyushin
2023-02-21 01:55:59 +04:00
parent 18934cf6e9
commit 6de1267a1d
10 changed files with 26 additions and 22 deletions

View File

@@ -951,7 +951,11 @@ const CGFloat TGPhotoAvatarPreviewLandscapePanelSize = TGPhotoAvatarPreviewPanel
- (TGPhotoEditorTab)availableTabs
{
return TGPhotoEditorRotateTab | TGPhotoEditorMirrorTab | TGPhotoEditorPaintTab | TGPhotoEditorToolsTab;
TGPhotoEditorTab tabs = TGPhotoEditorRotateTab | TGPhotoEditorMirrorTab | TGPhotoEditorToolsTab;
if (self.intent != TGPhotoEditorControllerSignupAvatarIntent) {
tabs |= TGPhotoEditorPaintTab;
}
return tabs;
}
- (TGPhotoEditorTab)activeTab