Added the "openSettings" environment property to the MenuBarView view in the app target.
This commit is contained in:
parent
009f616d3e
commit
e5858c93bb
@ -13,6 +13,8 @@ struct MenuBarView: View {
|
|||||||
|
|
||||||
// MARK: Properties
|
// MARK: Properties
|
||||||
|
|
||||||
|
@Environment(\.openSettings) private var openSettings
|
||||||
|
|
||||||
@Query(sort: \Repository.sortOrder)
|
@Query(sort: \Repository.sortOrder)
|
||||||
private var repositories: [Repository]
|
private var repositories: [Repository]
|
||||||
|
|
||||||
@ -26,7 +28,7 @@ struct MenuBarView: View {
|
|||||||
title: "menu-bar.item.empty.title.text",
|
title: "menu-bar.item.empty.title.text",
|
||||||
button: "menu-bar.item.empty.button.text"
|
button: "menu-bar.item.empty.button.text"
|
||||||
) {
|
) {
|
||||||
// ...
|
openSettings()
|
||||||
}
|
}
|
||||||
.frame(height: Layout.heightEmpty)
|
.frame(height: Layout.heightEmpty)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user