From 226dd0593b8bbcc444caf97b8e08bafde9387d0f Mon Sep 17 00:00:00 2001 From: Gerrit Linnemann Date: Fri, 18 Sep 2020 21:00:30 +0200 Subject: [PATCH] Nichts bedeutendes --- YAPS/YAPS/AppDelegate.swift | 6 +++++- YAPS/YAPS/Base.lproj/Main.storyboard | 13 ------------- 2 files changed, 5 insertions(+), 14 deletions(-) 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 @@ - - - - - - - - - - - - -