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

Commit f38864d

Browse files
committed
Fix crash if poster images unavailable
1 parent 8a6a71c commit f38864d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

TMT Mac/ContentView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,6 @@ struct ContentView: View {
121121
}
122122

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

TMT Mac/Views/MovieTrailerListView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ struct MovieTrailerListView: View {
130130
}
131131

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

136136
private func playTrailer(_ movieInfo: MovieInfo) {

TheatricalMovieTrailers.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@
909909
CODE_SIGN_IDENTITY = "Apple Development";
910910
CODE_SIGN_STYLE = Automatic;
911911
COMBINE_HIDPI_IMAGES = YES;
912-
CURRENT_PROJECT_VERSION = 1;
912+
CURRENT_PROJECT_VERSION = 2;
913913
DEVELOPMENT_ASSET_PATHS = "\"TMT Mac/Preview Content\"";
914914
DEVELOPMENT_TEAM = U96PJYMZWW;
915915
ENABLE_HARDENED_RUNTIME = YES;
@@ -943,7 +943,7 @@
943943
CODE_SIGN_IDENTITY = "Apple Development";
944944
CODE_SIGN_STYLE = Automatic;
945945
COMBINE_HIDPI_IMAGES = YES;
946-
CURRENT_PROJECT_VERSION = 1;
946+
CURRENT_PROJECT_VERSION = 2;
947947
DEVELOPMENT_ASSET_PATHS = "\"TMT Mac/Preview Content\"";
948948
DEVELOPMENT_TEAM = U96PJYMZWW;
949949
ENABLE_HARDENED_RUNTIME = YES;

0 commit comments

Comments
 (0)