mirror of
https://github.com/yattee/yattee.git
synced 2026-05-12 18:35:05 +00:00
Remove Close button from Settings toolbar on macOS
This commit is contained in:
@@ -72,18 +72,6 @@ struct SettingsView: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.toolbar {
|
||||
if showCloseButton {
|
||||
ToolbarItem(placement: .confirmationAction) {
|
||||
Button(role: .cancel) {
|
||||
dismiss()
|
||||
} label: {
|
||||
Label(String(localized: "common.close"), systemImage: "xmark")
|
||||
.labelStyle(.iconOnly)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user