Added the "openSettings" environment property to the MenuBarView view in the app target.

This commit is contained in:
Javier Cicchelli 2024-10-13 20:29:42 +02:00
parent 009f616d3e
commit e5858c93bb

View File

@ -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 {