mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 05:19:13 +00:00
remove the minimize button
This commit is contained in:
@@ -38,13 +38,14 @@ struct ShellView: View {
|
||||
Label("Disconnect", systemImage: "xmark.app.fill")
|
||||
}
|
||||
}
|
||||
ToolbarItem(placement: .cancellationAction) {
|
||||
Button() {
|
||||
dismiss()
|
||||
} label: {
|
||||
Label("Close", systemImage: "arrow.down.right.and.arrow.up.left")
|
||||
}
|
||||
}
|
||||
//TODO: FIX
|
||||
// ToolbarItem(placement: .cancellationAction) {
|
||||
// Button() {
|
||||
// dismiss()
|
||||
// } label: {
|
||||
// Label("Close", systemImage: "arrow.down.right.and.arrow.up.left")
|
||||
// }
|
||||
// }
|
||||
}
|
||||
.onChange(of: handler.connected) { _ in
|
||||
if !handler.connected { dismiss() }
|
||||
|
||||
Reference in New Issue
Block a user