Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
* dev:
  bump version
  fix: observer of search progress lives longer than its observance
  • Loading branch information
ddddxxx committed Apr 27, 2018
2 parents 32122c2 + 282f44e commit 0b8ae6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions LyricsX/Controller/SearchLyricsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class SearchLyricsViewController: NSViewController, NSTableViewDelegate, NSTable

@IBAction func searchAction(_ sender: Any?) {
searchTask?.cancel()
progressObservation?.invalidate()
searchResult = []
artworkView.image = #imageLiteral(resourceName: "missing_artwork")
lyricsPreviewTextView.string = " "
Expand All @@ -103,6 +104,7 @@ class SearchLyricsViewController: NSViewController, NSTableViewDelegate, NSTable
self?.progressIndicator.doubleValue = fractionCompleted
if fractionCompleted == 1 {
self?.progressIndicator.isHidden = true
self?.progressObservation?.invalidate()
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions LyricsX/Supporting Files/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.3.0</string>
<string>1.3.1-beta</string>
<key>CFBundleVersion</key>
<string>1690</string>
<string>1691</string>
<key>Fabric</key>
<dict>
<key>APIKey</key>
Expand Down

0 comments on commit 0b8ae6b

Please sign in to comment.