Skip to content

Commit

Permalink
feat: only show recently played game in home view if it's installed +…
Browse files Browse the repository at this point in the history
… build bump
  • Loading branch information
vapidinfinity committed Jan 31, 2025
1 parent 8c4f44f commit badde14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Mythic.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3337;
CURRENT_PROJECT_VERSION = 3338;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_ASSET_PATHS = "\"Mythic/Preview Content\"";
Expand Down Expand Up @@ -860,7 +860,7 @@
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3337;
CURRENT_PROJECT_VERSION = 3338;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_ASSET_PATHS = "\"Mythic/Preview Content\"";
Expand Down
3 changes: 2 additions & 1 deletion Mythic/Views/Navigation/HomeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ struct HomeView: View {
HStack {
// MARK: - Recent Game Display
if let recentlyPlayedObject = defaults.object(forKey: "recentlyPlayed") as? Data,
var recentlyPlayedGame: Game = try? PropertyListDecoder().decode(Game.self, from: recentlyPlayedObject) {
var recentlyPlayedGame: Game = try? PropertyListDecoder().decode(Game.self, from: recentlyPlayedObject),
recentlyPlayedGame.isInstalled {
GameCard(game: .init(get: { recentlyPlayedGame }, set: { recentlyPlayedGame = $0 }))
}

Expand Down

0 comments on commit badde14

Please sign in to comment.