Skip to content

Commit

Permalink
Revert "Present the open panel when clicking the initial view (#150)" (
Browse files Browse the repository at this point in the history
…#157)

This reverts commit fd9320d.
  • Loading branch information
sindresorhus committed Oct 31, 2019
1 parent f278531 commit 7c74d4c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Gifski/VideoDropViewController.swift
Expand Up @@ -21,11 +21,6 @@ final class VideoDropViewController: NSViewController {
let view = videoDropView
view.frame.size = Constants.defaultWindowSize
self.view = view

if !videoDropView.isDropLabelHidden {
let clickGestureRecognizer = NSClickGestureRecognizer(target: self, action: #selector(dropViewClicked(sender:)))
view.addGestureRecognizer(clickGestureRecognizer)
}
}

func convert(_ inputUrl: URL) {
Expand All @@ -38,9 +33,4 @@ final class VideoDropViewController: NSViewController {
let editController = EditVideoViewController(inputUrl: inputUrl, asset: asset, videoMetadata: videoMetadata)
push(viewController: editController)
}

@objc
private func dropViewClicked(sender: NSGestureRecognizer) {
AppDelegate.shared.mainWindowController.open(sender)
}
}

0 comments on commit 7c74d4c

Please sign in to comment.