diff --git a/YAPS/YAPS/AppDelegate.swift b/YAPS/YAPS/AppDelegate.swift index 8d40d93..f4a7add 100644 --- a/YAPS/YAPS/AppDelegate.swift +++ b/YAPS/YAPS/AppDelegate.swift @@ -49,7 +49,11 @@ class AppDelegate: NSObject, NSApplicationDelegate { */ @IBAction func openFolder(_ sender: Any) { - + if !Shared.shared.destinationDefined { + Shared.shared.destination = FinderHelper.shared.selectFolder(modalTitle: "Choose destination folder.") + Shared.shared.destinationDefined = true + } + FinderHelper.shared.iLikeThisImage(yapsFile: Shared.shared.currentFile, destination: Shared.shared.destination) } @IBAction func getIt(_ sender: Any) { diff --git a/YAPS/YAPS/Base.lproj/Main.storyboard b/YAPS/YAPS/Base.lproj/Main.storyboard index 36eeaad..f08645b 100644 --- a/YAPS/YAPS/Base.lproj/Main.storyboard +++ b/YAPS/YAPS/Base.lproj/Main.storyboard @@ -68,19 +68,6 @@ - - - - - - - - - - - - -