mirror of
https://github.com/exelban/stats.git
synced 2026-05-07 20:02:34 +00: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