From 449d1e67cce02d178fdc9b9d74919085c618b41b Mon Sep 17 00:00:00 2001 From: phlpsong Date: Sun, 4 Feb 2024 11:05:13 +0800 Subject: [PATCH] fix: remove unused code --- Easydict/NewApp/View/MenuItemView.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/Easydict/NewApp/View/MenuItemView.swift b/Easydict/NewApp/View/MenuItemView.swift index 39b021f2e..404b691bb 100644 --- a/Easydict/NewApp/View/MenuItemView.swift +++ b/Easydict/NewApp/View/MenuItemView.swift @@ -25,7 +25,6 @@ final class MenuItemStore: ObservableObject { @available(macOS 13, *) struct MenuItemView: View { @ObservedObject private var store = MenuItemStore() - @Environment(\.openSettings) private var openSettings var body: some View { // ️.menuBarExtraStyle为 .menu 时某些控件可能会失效 ,只能显示内容(按照菜单项高度、图像以 template 方式渲染)无法交互 ,比如 Stepper、Slider 等,像基本的 Button、Text、Divider、Image 等还是能正常显示的。