1
0
mirror of https://github.com/yattee/yattee.git synced 2025-04-28 16:00:33 +05:30

Add shortcut to watch next hide

This commit is contained in:
Arkadiusz Fal 2022-12-22 00:23:43 +01:00
parent ff5893f8db
commit 3c971f582f

View File

@ -181,12 +181,15 @@ struct WatchNextView: View {
} }
@ViewBuilder var hideCloseButton: some View { @ViewBuilder var hideCloseButton: some View {
Group {
if model.isHideable { if model.isHideable {
hideButton hideButton
} else { } else {
closeButton closeButton
} }
} }
.keyboardShortcut(.cancelAction)
}
var hideButton: some View { var hideButton: some View {
Button { Button {