Skip to content

Commit

Permalink
Do some slow setup on launch instead of on first menu click
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmhouston committed Oct 31, 2024
1 parent 3ec16e7 commit b253f81
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Maccy/Maccy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,12 @@ class Maccy: NSObject {

#if CLEEPP
menu.buildItems()
// prepareForPopup() can take a while the first time so do it early
// instead of the first time the menu is clicked on, and in case the
// intro needs to be shown, delay this call a bit to let that open
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
self.menu.prepareForPopup(location: .inMenuBar)
}
#else
populateHeader()
populateItems()
Expand Down

0 comments on commit b253f81

Please sign in to comment.