Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Core/Sources/HostApp/DebugView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ final class DebugSettings: ObservableObject {
var toastForTheReasonWhyXcodeInspectorNeedsToBeRestarted
@AppStorage(\.observeToAXNotificationWithDefaultMode)
var observeToAXNotificationWithDefaultMode
@AppStorage(\.useCloudflareDomainNameForLicenseCheck)
var useCloudflareDomainNameForLicenseCheck
init() {}
}

Expand Down Expand Up @@ -126,6 +128,12 @@ struct DebugSettingsView: View {
Text("Observe to AXNotification with default mode")
}
}

Toggle(
isOn: $settings.useCloudflareDomainNameForLicenseCheck
) {
Text("Use Cloudflare domain name for license check")
}
}
}
.frame(maxWidth: .infinity)
Expand Down
10 changes: 7 additions & 3 deletions Core/Sources/HostApp/GeneralView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -244,16 +244,20 @@ struct GeneralSettingsView: View {

@StateObject var settings = Settings()
@Environment(\.updateChecker) var updateChecker

@State var automaticallyCheckForUpdate: Bool?

var body: some View {
Form {
Toggle(isOn: $settings.quitXPCServiceOnXcodeAndAppQuit) {
Text("Quit service when Xcode and host app are terminated")
}

Toggle(isOn: .init(
get: { updateChecker.automaticallyChecksForUpdates },
set: { updateChecker.automaticallyChecksForUpdates = $0 }
get: { automaticallyCheckForUpdate ?? updateChecker.automaticallyChecksForUpdates },
set: {
updateChecker.automaticallyChecksForUpdates = $0
automaticallyCheckForUpdate = $0
}
)) {
Text("Automatically Check for Update")
}
Expand Down
2 changes: 1 addition & 1 deletion Pro
Submodule Pro updated from a26917 to 43e541
4 changes: 4 additions & 0 deletions Tool/Sources/Preferences/Keys.swift
Original file line number Diff line number Diff line change
Expand Up @@ -616,5 +616,9 @@ public extension UserDefaultPreferenceKeys {
var observeToAXNotificationWithDefaultMode: FeatureFlag {
.init(defaultValue: false, key: "FeatureFlag-observeToAXNotificationWithDefaultMode")
}

var useCloudflareDomainNameForLicenseCheck: FeatureFlag {
.init(defaultValue: false, key: "FeatureFlag-UseCloudflareDomainNameForLicenseCheck")
}
}