mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: added clearing the process after it was killed
This commit is contained in:
@@ -266,6 +266,8 @@ public class ProcessView: NSStackView {
|
||||
@objc private func kill() {
|
||||
if let pid = self.pid {
|
||||
_ = syncShell("kill -9 \(pid)")
|
||||
self.clear()
|
||||
self.setLock(false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user