feat: added notifications view to the Battery module

This commit is contained in:
Serhiy Mytrovtsiy
2023-12-20 13:20:08 +01:00
parent 4754b6144a
commit cedb16e2d6
10 changed files with 109 additions and 156 deletions

View File

@@ -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)"