Skip to content

Commit

Permalink
v1.4.1(52)
Browse files Browse the repository at this point in the history
Fix player bug when keep open after done option is on.
  • Loading branch information
lithium0003 committed Nov 18, 2019
1 parent 5b633e7 commit c1daf34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ccViewer/CryptCloudViewer.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = ccViewer/ccViewer.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 51;
CURRENT_PROJECT_VERSION = 52;
DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = YES;
DEVELOPMENT_TEAM = 7A9X38B4YU;
"ENABLE_HARDENED_RUNTIME[sdk=macosx*]" = YES;
Expand Down Expand Up @@ -848,7 +848,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = ccViewer/ccViewer.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 51;
CURRENT_PROJECT_VERSION = 52;
DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = YES;
DEVELOPMENT_TEAM = 7A9X38B4YU;
"ENABLE_HARDENED_RUNTIME[sdk=macosx*]" = YES;
Expand Down
6 changes: 3 additions & 3 deletions ccViewer/ccViewer/CustomPlayerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -414,15 +414,15 @@ class CustomPlayerView: NSObject, AVPlayerViewControllerDelegate {
func nextTrack() {
let url = prevURL
var reload = UserDefaults.standard.bool(forKey: "keepOpenWhenDone")
if reload && player.items().count > 1 {
reload = false
}
if player.items().count <= 2 {
if loop {
reload = false
loopSetup()
}
if reload {
if player.items().count > 1 {
reload = false
}
loopSetup()
}
}
Expand Down

0 comments on commit c1daf34

Please sign in to comment.