Automagicly jump to the relevant metagroup too when jumping to items
This commit is contained in:
2
eos
2
eos
Submodule eos updated: bb51319d86...176b0b9df9
@@ -133,6 +133,15 @@ class MarketBrowser(wx.Panel):
|
||||
mg = item.marketGroup
|
||||
if mg is None and item.metaGroup is not None:
|
||||
mg = item.metaGroup.parent.marketGroup
|
||||
cMarket = service.Market.getInstance()
|
||||
for btn in ("normal", "faction", "complex", "officer"):
|
||||
getattr(self, btn).SetValue(False)
|
||||
cMarket.disableMetaGroup(btn)
|
||||
|
||||
metaGroup = item.metaGroup.name.lower()
|
||||
getattr(self, metaGroup).SetValue(True)
|
||||
cMarket.activateMetaGroup(metaGroup)
|
||||
self.searching = False
|
||||
|
||||
if mg is None:
|
||||
return
|
||||
@@ -153,6 +162,7 @@ class MarketBrowser(wx.Panel):
|
||||
self.marketView.Expand(item)
|
||||
|
||||
self.marketView.SelectItem(item)
|
||||
self.searching = True
|
||||
|
||||
def addMarketViewImage(self, iconFile):
|
||||
if iconFile is None:
|
||||
|
||||
@@ -23,6 +23,7 @@ import wx
|
||||
import threading
|
||||
from sqlalchemy.orm.exc import NoResultFound
|
||||
import Queue
|
||||
import traceback
|
||||
|
||||
class PriceWorkerThread(threading.Thread):
|
||||
def run(self):
|
||||
|
||||
Reference in New Issue
Block a user