mirror of
https://github.com/AppHouseKitchen/AlDente-Battery_Care_and_Monitoring.git
synced 2026-04-29 04:07:19 +02:00
launchatlogin fix, b/w icon, osx battery scale
This commit is contained in:
@@ -10,6 +10,7 @@ import Cocoa
|
||||
import SwiftUI
|
||||
import ServiceManagement
|
||||
import Foundation
|
||||
import LaunchAtLogin
|
||||
|
||||
@NSApplicationMain
|
||||
class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
@@ -33,14 +34,16 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
let statusBar = NSStatusBar.system
|
||||
statusBarItem = statusBar.statusItem(
|
||||
withLength: NSStatusItem.squareLength)
|
||||
statusBarItem.button?.title = "🍝"
|
||||
statusBarItem.button?.image = NSImage(named: "menubaricon")!
|
||||
//statusBarItem.button?.title = "🍝"
|
||||
|
||||
if let button = self.statusBarItem.button {
|
||||
button.action = #selector(togglePopover(_:))
|
||||
}
|
||||
|
||||
Helper.instance.checkHelperVersion()
|
||||
|
||||
|
||||
LaunchAtLogin.isEnabled = true
|
||||
}
|
||||
|
||||
@objc func togglePopover(_ sender: AnyObject?) {
|
||||
|
||||
Reference in New Issue
Block a user