1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-07 20:10:08 +02:00

️ Fix performance bottleneck related to view drawing

This commit is contained in:
2022-03-17 18:38:26 +01:00
parent 28c5754800
commit af9f30a123
2 changed files with 1 additions and 5 deletions

View File

@ -340,6 +340,7 @@ class MainMenu: NSObject, NSWindowDelegate, NSMenuDelegate, PhpSwitcherDelegate
func menuWillOpen(_ menu: NSMenu) {
// Make sure the shortcut key does not trigger this when the menu is open
App.shared.shortcutHotkey?.isPaused = true
NotificationCenter.default.post(name: Events.ServicesUpdated, object: nil)
}
func menuDidClose(_ menu: NSMenu) {

View File

@ -45,11 +45,6 @@ class ServicesView: NSView, XibLoadable {
return item
}
override func viewWillDraw() {
super.viewWillDraw()
Task { await self.loadData() }
}
@objc func updateInformation() {
Task { await self.loadData() }
}