From 8da89204c8822740edb6e1aa937d464e18419a18 Mon Sep 17 00:00:00 2001 From: Ebag333 Date: Wed, 10 Aug 2016 21:37:19 -0700 Subject: [PATCH] Moved market instance creation down to save some time if we're not even going to search --- gui/propertyEditor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gui/propertyEditor.py b/gui/propertyEditor.py index 48c2689cd5..f0f3628817 100644 --- a/gui/propertyEditor.py +++ b/gui/propertyEditor.py @@ -24,6 +24,7 @@ class AttributeEditor( wx.Frame ): def __init__( self, parent ): + logger.debug('Initialize propertyEditor.py') wx.Frame.__init__(self, parent, wx.ID_ANY, title="Attribute Editor", pos=wx.DefaultPosition, size=wx.Size(650, 600), style=wx.DEFAULT_FRAME_STYLE|wx.FRAME_FLOAT_ON_PARENT|wx.TAB_TRAVERSAL) @@ -180,7 +181,7 @@ def updateItems(self, updateDisplay=False): self.update(self.things) def scheduleSearch(self, event=None): - sMkt = service.Market.getInstance() + logger.debug('Initiating search') search = self.searchBox.GetLineText(0) # Make sure we do not count wildcard as search symbol @@ -190,9 +191,11 @@ def scheduleSearch(self, event=None): self.clearSearch() return + sMkt = service.Market.getInstance() sMkt.searchItems(search, self.populateSearch, False) def populateSearch(self, items): + logger.debug('Populating Search') self.items = list(items) self.update(items)