mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
feat: added releasing all processes when closing the popup view
This commit is contained in:
@@ -108,6 +108,10 @@ internal class Popup: PopupWrapper {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
public override func disappear() {
|
||||
self.processes.forEach{ $0.setLock(false) }
|
||||
}
|
||||
|
||||
public func numberOfProcessesUpdated() {
|
||||
if self.processes.count == self.numberOfProcesses {
|
||||
return
|
||||
|
||||
@@ -175,6 +175,10 @@ internal class Popup: PopupWrapper {
|
||||
self.lineChart?.display()
|
||||
}
|
||||
|
||||
public override func disappear() {
|
||||
self.processes.forEach{ $0.setLock(false) }
|
||||
}
|
||||
|
||||
public func numberOfProcessesUpdated() {
|
||||
if self.processes.count == self.numberOfProcesses {
|
||||
return
|
||||
|
||||
@@ -139,6 +139,10 @@ internal class Popup: PopupWrapper {
|
||||
self.chart?.display()
|
||||
}
|
||||
|
||||
public override func disappear() {
|
||||
self.processes.forEach{ $0.setLock(false) }
|
||||
}
|
||||
|
||||
public func numberOfProcessesUpdated() {
|
||||
if self.processes.count == self.numberOfProcesses {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user