mirror of
https://github.com/yattee/yattee.git
synced 2026-10-23 05:02:53 +00:00
Give the tvOS media-source-not-found screen an Open Sources button
A media source destination whose source was removed rendered a bare ContentUnavailableView, so the remote had nothing to focus.
This commit is contained in:
@@ -7202,6 +7202,17 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"navigation.sourceNotFound.openSources" : {
|
||||
"comment" : "tvOS button on the media-source-not-found screen that opens the Sources list",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Open Sources"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Next" : {
|
||||
|
||||
},
|
||||
|
||||
@@ -190,6 +190,14 @@ private struct MediaSourceByIDView: View {
|
||||
Label(String(localized: "navigation.sourceNotFound"), systemImage: "externaldrive.badge.exclamationmark")
|
||||
} description: {
|
||||
Text(String(localized: "navigation.sourceNotFound.description"))
|
||||
} actions: {
|
||||
#if os(tvOS)
|
||||
// Nothing else here is focusable, and as a sidebar source this
|
||||
// is a tab root that Menu cannot pop.
|
||||
Button(String(localized: "navigation.sourceNotFound.openSources")) {
|
||||
appEnvironment?.navigationCoordinator.router.select(.sources)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user