feat: updated RAM portal view

This commit is contained in:
Serhiy Mytrovtsiy
2024-01-26 18:44:48 +01:00
parent b392a9732c
commit a2a9b1aee3
4 changed files with 85 additions and 94 deletions

View File

@@ -92,7 +92,7 @@ public class RAM: Module {
public init() {
self.settingsView = Settings("RAM")
self.popupView = Popup("RAM")
self.portalView = Portal("RAM")
self.portalView = Portal(.RAM)
self.notificationsView = Notifications(.RAM)
super.init(
@@ -149,7 +149,7 @@ public class RAM: Module {
guard raw != nil, let value = raw, self.enabled else { return }
self.popupView.loadCallback(value)
self.portalView.loadCallback(value)
self.portalView.callback(value)
self.notificationsView.loadCallback(value)
let total: Double = value.total == 0 ? 1 : value.total