MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / refresh

Method refresh

gui/builtinMarketBrowser/itemView.py:279–287  ·  view source on GitHub ↗
(self, items)

Source from the content-addressed store, hash-verified

277 Display.populate(self, items)
278
279 def refresh(self, items):
280 if len(items) > 1:
281 # Re-sort stuff
282 if self.marketBrowser.mode != 'recent':
283 items.sort(key=self.sMkt.itemSort)
284 for i, item in enumerate(items[:9]):
285 # set shortcut info for first 9 modules
286 item.marketShortcut = i + 1
287 Display.refresh(self, items)
288
289 def columnBackground(self, colItem, item):
290 if self.sFit.serviceFittingOptions["colorFitBySlot"]:

Callers

nothing calls this directly

Calls 1

sortMethod · 0.45

Tested by

no test coverage detected