Skip to content

Commit

Permalink
Fix Settings render issues (PlayCover#1511)
Browse files Browse the repository at this point in the history
  • Loading branch information
Catta1997 authored Jul 7, 2024
1 parent 9bab06b commit d591f49
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions PlayCover/Views/AppSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ struct AppSettingsView: View {

struct KeymappingView: View {
@Binding var settings: AppSettings

@AppStorage("settings.settings.keymapping") private var keymapping = false
@AppStorage("settings.settings.noKMOnInput") private var noKMOnInput = false
@AppStorage("settings.settings.enableScrollWheel") private var enableScrollWheel = false
var body: some View {
ScrollView {
VStack {
Expand Down Expand Up @@ -191,7 +193,8 @@ struct GraphicsView: View {
@State var customHeight = 1080

@State var showResolutionWarning = false

@AppStorage("settings.settings.inverseScreenValues") private var inverseScreenValues = false
@AppStorage("settings.settings.disableTimeout") private var disableTimeout = false
static var number: NumberFormatter {
let formatter = NumberFormatter()
formatter.numberStyle = .none
Expand Down Expand Up @@ -458,7 +461,9 @@ struct BypassesView: View {
@Binding var settings: AppSettings
@Binding var hasPlayTools: Bool?
@Binding var task: BlockingTask

@AppStorage("settings.settings.playChain") private var playChain = false
@AppStorage("settings.settings.playChainDebugging") private var playChainDebugging = false
@AppStorage("settings.settings.bypass") private var bypass = false
@State private var hasIntrospection: Bool
@State private var hasIosFrameworks: Bool

Expand Down Expand Up @@ -536,13 +541,13 @@ struct MiscView: View {
@Binding var hasPlayTools: Bool?
@Binding var hasAlias: Bool?
@Binding var task: BlockingTask

@AppStorage("settings.settings.discordActivity.enable") private var discordActivity = false
@AppStorage("settings.settings.metalHUD") private var metalHUD = false
@AppStorage("settings.openWithLLDB") private var openWithLLDB = false
@AppStorage("settings.openLLDBWithTerminal") private var openLLDBWithTerminal = false
@State var showPopover = false

var app: PlayApp

@State var applicationCategoryType: LSApplicationCategoryType

var body: some View {
ScrollView {
VStack {
Expand Down

0 comments on commit d591f49

Please sign in to comment.