This commit is contained in:
Alin
2024-05-28 17:16:22 -06:00
parent 50038412f1
commit 03ba815454
13 changed files with 57 additions and 53 deletions
+2 -1
View File
@@ -95,7 +95,7 @@ struct PearcleanerApp: App {
// Enable menubar item
if menubarEnabled {
MenuBarExtraManager.shared.addMenuBarExtra(withView: {
MiniAppView(search: $search, showPopover: $showPopover)
MiniAppView(search: $search, showPopover: $showPopover, isMenuBar: true)
.environmentObject(locations)
.environmentObject(appState)
.environmentObject(fsm)
@@ -179,6 +179,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSWindowDelegate {
func applicationDidFinishLaunching(_ notification: Notification) {
let menubarEnabled = UserDefaults.standard.bool(forKey: "settings.menubar.enabled")
// UserDefaults.standard.register(defaults: ["NSQuitAlwaysKeepsWindows" : false])
findAndSetWindowFrame(named: ["Pearcleaner"], windowSettings: windowSettings)
if UserDefaults.standard.object(forKey: "themeColor") == nil {