mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
[AltServer] Fixes prematurely fetching installed apps
This commit is contained in:
@@ -534,8 +534,14 @@ extension AppDelegate: NSMenuDelegate
|
||||
|
||||
func menuDidClose(_ menu: NSMenu)
|
||||
{
|
||||
guard menu == self.appMenu else { return }
|
||||
|
||||
// Clearing _jitAppListMenuControllers now prevents action handler from being called.
|
||||
// self._jitAppListMenuControllers = []
|
||||
|
||||
// Set `submenuHandler` to nil to prevent prematurely fetching installed apps in menuWillOpen(_:)
|
||||
// when assigning self.connectedDevices to `items` (which implicitly calls `submenuHandler`)
|
||||
self.enableJITMenuController.submenuHandler = nil
|
||||
}
|
||||
|
||||
func menu(_ menu: NSMenu, willHighlight item: NSMenuItem?)
|
||||
|
||||
Reference in New Issue
Block a user