Fix bug for when updating preferences before loading anything into ItemView

This commit is contained in:
blitzmann
2019-03-02 17:35:30 -05:00
parent f8e6474b39
commit 114d72e23f

View File

@@ -162,12 +162,17 @@ class PFGeneralPref(PreferenceView):
event.Skip()
def onCBGlobalColorBySlot(self, event):
# todo: maybe create a SettingChanged event that we can fire, and have other things hook into, instead of having the preference panel itself handle the
# updating of things related to settings.
self.sFit.serviceFittingOptions["colorFitBySlot"] = self.cbFitColorSlots.GetValue()
fitID = self.mainFrame.getActiveFit()
self.sFit.refreshFit(fitID)
iView = self.mainFrame.marketBrowser.itemView
if iView.active:
iView.update(iView.active)
wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=fitID))
iView = self.mainFrame.marketBrowser.itemView;
iView.update(iView.active)
event.Skip()
def onCBGlobalRackSlots(self, event):