mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: add error_msg func to the Logger
fix: removed unused code from the AppDelegate
This commit is contained in:
@@ -179,3 +179,7 @@ public func info(_ message: String, log: NextLog = NextLog.shared, file: String
|
||||
public func error(_ message: String, log: NextLog = NextLog.shared, file: String = #file, line: UInt = #line) {
|
||||
log.log(level: .error, message: message, file: file, line: line)
|
||||
}
|
||||
|
||||
public func error_msg(_ message: String, log: NextLog = NextLog.shared, file: String = #file, line: UInt = #line) {
|
||||
log.log(level: .error, message: message, file: file, line: line)
|
||||
}
|
||||
|
||||
@@ -45,9 +45,6 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
|
||||
self.parseArguments()
|
||||
self.parseVersion()
|
||||
|
||||
NSUserNotificationCenter.default.removeAllDeliveredNotifications()
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(updateCron), name: .changeCronInterval, object: nil)
|
||||
|
||||
modules.forEach{ $0.mount() }
|
||||
self.settingsWindow.setModules()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user