From eb6db97dc6c67face6bf75a71898f11e0a5352e7 Mon Sep 17 00:00:00 2001 From: Cong Nguyen Date: Sat, 6 Jun 2020 09:53:23 +0900 Subject: [PATCH] FMImageEditor: fix opening default menu --- .../Scene/Presenter/Editor/FMImageEditorViewController.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/FMPhotoPicker/FMPhotoPicker/source/Scene/Presenter/Editor/FMImageEditorViewController.swift b/FMPhotoPicker/FMPhotoPicker/source/Scene/Presenter/Editor/FMImageEditorViewController.swift index 4f89f9c..ffa3d32 100644 --- a/FMPhotoPicker/FMPhotoPicker/source/Scene/Presenter/Editor/FMImageEditorViewController.swift +++ b/FMPhotoPicker/FMPhotoPicker/source/Scene/Presenter/Editor/FMImageEditorViewController.swift @@ -258,9 +258,7 @@ public class FMImageEditorViewController: UIViewController { if config.availableFilters != nil { openFiltersMenu() - } - - if config.availableCrops != nil { + } else if config.availableCrops != nil { openCropsMenu() }