Add manual kill button

This commit is contained in:
Peter Steinberger 2025-06-19 23:52:23 +02:00
parent 6974e57f15
commit d20b7e6656

View file

@ -689,6 +689,7 @@ private struct PortConfigurationView: View {
.foregroundColor(.orange)
}
HStack(spacing: 8) {
if !conflict.alternativePorts.isEmpty {
HStack(spacing: 4) {
Text("Try port:")
@ -712,6 +713,25 @@ private struct PortConfigurationView: View {
.font(.caption)
}
}
Spacer()
Button {
Task {
await forceQuitConflictingProcess(conflict)
}
} label: {
HStack(spacing: 4) {
Image(systemName: "xmark.circle.fill")
.font(.caption)
Text("Kill Process")
.font(.caption)
}
}
.buttonStyle(.borderedProminent)
.controlSize(.small)
.tint(.red)
}
}
.padding(.vertical, 8)
.padding(.horizontal, 12)