Skip to content

Commit

Permalink
adjust load video button enable logic
Browse files Browse the repository at this point in the history
  • Loading branch information
lowfiend authored and Neyo committed Nov 18, 2022
1 parent 8a3b2b6 commit 0b8fced
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion FloatPlayer/FormViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ class FormViewController: SubViewController, NSTextFieldDelegate {
loadVideoButton.isEnabled = true
}

videoUrlTextField.stringValue = UserDefaults.standard.string(forKey: "VIDEO_URL") ?? ""
let videoUrl = UserDefaults.standard.string(forKey: "VIDEO_URL") ?? ""

if !videoUrl.isEmpty{
videoUrlTextField.stringValue = videoUrl
loadVideoButton.isEnabled = true
}
}

func validUrlFromClipboard() -> String? {
Expand Down

0 comments on commit 0b8fced

Please sign in to comment.