macOS: Log view: Stop updating the log once the log view is dismissed
This commit is contained in:
parent
8eb3795efb
commit
af9bd363bd
|
@ -187,6 +187,16 @@ class LogViewController: NSViewController {
|
|||
RunLoop.main.add(timer, forMode: .common)
|
||||
}
|
||||
|
||||
func stopUpdatingLogEntries() {
|
||||
updateLogEntriesTimer?.invalidate()
|
||||
updateLogEntriesTimer = nil
|
||||
}
|
||||
|
||||
override func viewWillDisappear() {
|
||||
super.viewWillDisappear()
|
||||
stopUpdatingLogEntries()
|
||||
}
|
||||
|
||||
@objc func saveClicked() {
|
||||
let savePanel = NSSavePanel()
|
||||
savePanel.prompt = tr("macSheetButtonExportLog")
|
||||
|
|
Loading…
Reference in New Issue