mirror of
https://github.com/yattee/yattee.git
synced 2026-05-13 19:05:03 +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
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user