Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

Commit

Permalink
Fix crash if poster images unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
conath committed Dec 25, 2021
1 parent 8a6a71c commit f38864d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion TMT Mac/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,6 @@ struct ContentView: View {
}

private func imageForMovie(_ movieInfo: MovieInfo) -> NSImage {
return (dataStore.idsAndImages[movieInfo.id] ?? NSImage(named: "MoviePosterPlaceholder"))!
return (dataStore.idsAndImages[movieInfo.id] ?? NSImage(named: "moviePosterPlaceholder"))!
}
}
2 changes: 1 addition & 1 deletion TMT Mac/Views/MovieTrailerListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ struct MovieTrailerListView: View {
}

private func imageForMovie(_ movieInfo: MovieInfo) -> NSImage {
return (dataStore.idsAndImages[movieInfo.id] ?? NSImage(named: "MoviePosterPlaceholder"))!
return (dataStore.idsAndImages[movieInfo.id] ?? NSImage(named: "moviePosterPlaceholder"))!
}

private func playTrailer(_ movieInfo: MovieInfo) {
Expand Down
4 changes: 2 additions & 2 deletions TheatricalMovieTrailers.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_ASSET_PATHS = "\"TMT Mac/Preview Content\"";
DEVELOPMENT_TEAM = U96PJYMZWW;
ENABLE_HARDENED_RUNTIME = YES;
Expand Down Expand Up @@ -943,7 +943,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_ASSET_PATHS = "\"TMT Mac/Preview Content\"";
DEVELOPMENT_TEAM = U96PJYMZWW;
ENABLE_HARDENED_RUNTIME = YES;
Expand Down

0 comments on commit f38864d

Please sign in to comment.