diff --git a/Mythic.xcodeproj/project.pbxproj b/Mythic.xcodeproj/project.pbxproj index 0bd08aab..c6614bbe 100644 --- a/Mythic.xcodeproj/project.pbxproj +++ b/Mythic.xcodeproj/project.pbxproj @@ -760,7 +760,7 @@ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "-"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 3040; + CURRENT_PROJECT_VERSION = 3042; DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEVELOPMENT_ASSET_PATHS = "\"Mythic/Preview Content\""; @@ -807,7 +807,7 @@ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "-"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 3040; + CURRENT_PROJECT_VERSION = 3042; DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEVELOPMENT_ASSET_PATHS = "\"Mythic/Preview Content\""; diff --git a/Mythic/Views/Unified/Sheets/InstallGameView.swift b/Mythic/Views/Unified/Sheets/InstallGameView.swift index 3fe85966..2d084ebf 100644 --- a/Mythic/Views/Unified/Sheets/InstallGameView.swift +++ b/Mythic/Views/Unified/Sheets/InstallGameView.swift @@ -14,7 +14,7 @@ struct InstallViewEvo: View { @State var optionalPacks: [String: String] = .init() @State var selectedOptionalPacks: Set = .init() - @State var fetchingOptionalPacks: Bool = true + @State var fetchingOptionalPacks: Bool = false @State var installSize: Double? @@ -28,6 +28,7 @@ struct InstallViewEvo: View { @ObservedObject var operation: GameOperation = .shared private func fetchOptionalPacks() async { + guard !fetchingOptionalPacks else { return } withAnimation { fetchingOptionalPacks = true } try? await Legendary.command( @@ -189,7 +190,7 @@ struct InstallViewEvo: View { } if let platforms = supportedPlatforms { - platform = platforms.contains(.macOS) ? .macOS : .windows + platform = platforms.contains(.macOS) ? .macOS : (supportedPlatforms?.first ?? .windows) } if let supportedPlatforms = supportedPlatforms,