From e5858c93bb85f5573f6a28654dd4d78a04f3d16d Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Sun, 13 Oct 2024 20:29:42 +0200 Subject: [PATCH] Added the "openSettings" environment property to the MenuBarView view in the app target. --- Piper/Sources/UI/Views/MenuBarView.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Piper/Sources/UI/Views/MenuBarView.swift b/Piper/Sources/UI/Views/MenuBarView.swift index 29cde10..f0d89d1 100644 --- a/Piper/Sources/UI/Views/MenuBarView.swift +++ b/Piper/Sources/UI/Views/MenuBarView.swift @@ -13,6 +13,8 @@ struct MenuBarView: View { // MARK: Properties + @Environment(\.openSettings) private var openSettings + @Query(sort: \Repository.sortOrder) private var repositories: [Repository] @@ -26,7 +28,7 @@ struct MenuBarView: View { title: "menu-bar.item.empty.title.text", button: "menu-bar.item.empty.button.text" ) { - // ... + openSettings() } .frame(height: Layout.heightEmpty) } else {