mirror of
https://github.com/yattee/yattee.git
synced 2026-11-02 18:07:19 +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:
@@ -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