mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: added notifications view to the Battery module
This commit is contained in:
@@ -38,6 +38,12 @@ open class NotificationsWrapper: NSStackView {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
public func willTerminate() {
|
||||
for id in self.ids {
|
||||
removeNotification(id.key)
|
||||
}
|
||||
}
|
||||
|
||||
public func initIDs(_ ids: [String]) {
|
||||
for id in ids {
|
||||
let notificationID = "Stats_\(self.module)_\(id)"
|
||||
|
||||
Reference in New Issue
Block a user