Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS 13.3 support #30

Merged
merged 3 commits into from
Jun 8, 2023
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
4 changes: 2 additions & 2 deletions Whisky.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 14.0;
MACOSX_DEPLOYMENT_TARGET = 13.1;
MARKETING_VERSION = "pre-0.2.1";
PRODUCT_BUNDLE_IDENTIFIER = com.isaacmarovitz.Whisky;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -521,7 +521,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 14.0;
MACOSX_DEPLOYMENT_TARGET = 13.1;
MARKETING_VERSION = "pre-0.2.1";
PRODUCT_BUNDLE_IDENTIFIER = com.isaacmarovitz.Whisky;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
2 changes: 1 addition & 1 deletion Whisky/Views/AppDBView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct AppDBView: View {
EntryView(entry: entry)
}
.listStyle(.inset(alternatesRowBackgrounds: true))
.onChange(of: search) { _, newValue in
.onChange(of: search) { newValue in
if newValue.isEmpty {
entries.removeAll()
return
Expand Down
2 changes: 1 addition & 1 deletion Whisky/Views/Bottle Views/ConfigView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ struct ConfigView: View {
}
}
.padding()
.onChange(of: windowsVersion) { _, newValue in
.onChange(of: windowsVersion) { newValue in
canChangeWinVersion = false
Task(priority: .userInitiated) {
do {
Expand Down
8 changes: 4 additions & 4 deletions Whisky/Views/ProgramView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ struct ProgramView: View {

environment = program.settings.environment
}
.onChange(of: environment) { _, newValue in
.onChange(of: environment) { newValue in
program.settings.environment = newValue
}
}
Expand Down Expand Up @@ -182,11 +182,11 @@ struct KeyItem: View {
HStack {
TextField("", text: $newKey)
.textFieldStyle(.roundedBorder)
.onChange(of: newKey) { _, _ in
.onChange(of: newKey) { _ in
newKey = String(newKey.filter { !$0.isWhitespace })
}
.focused($isKeyFieldFocused)
.onChange(of: isKeyFieldFocused) { _, focus in
.onChange(of: isKeyFieldFocused) { focus in
if !focus {
if let entry = environment.removeValue(forKey: key) {
environment[newKey] = entry
Expand All @@ -197,7 +197,7 @@ struct KeyItem: View {
TextField("", text: $value)
.textFieldStyle(.roundedBorder)
.focused($isValueFieldFocused)
.onChange(of: isValueFieldFocused) { _, focus in
.onChange(of: isValueFieldFocused) { focus in
if !focus {
environment[newKey] = value
}
Expand Down