Make it obvious that we're clearning cache by fitID
This commit is contained in:
@@ -150,7 +150,7 @@ class GraphFrame(wx.Frame):
|
||||
|
||||
def OnFitChanged(self, event):
|
||||
event.Skip()
|
||||
self.getView().clearCache(key=event.fitID)
|
||||
self.getView().clearCache(fitID=event.fitID)
|
||||
self.draw()
|
||||
|
||||
def OnGraphSwitched(self, event):
|
||||
@@ -168,8 +168,8 @@ class GraphFrame(wx.Frame):
|
||||
def getView(self):
|
||||
return self.graphSelection.GetClientData(self.graphSelection.GetSelection())
|
||||
|
||||
def clearCache(self, key=None):
|
||||
self.getView().clearCache(key=key)
|
||||
def clearCache(self, fitID=None):
|
||||
self.getView().clearCache(fitID=fitID)
|
||||
|
||||
def draw(self):
|
||||
global mpl_version
|
||||
|
||||
@@ -109,7 +109,7 @@ class FitList(gui.display.Display):
|
||||
self.fits.remove(fit)
|
||||
self.update(self.fits)
|
||||
for fit in fits:
|
||||
self.graphFrame.clearCache(key=fit.ID)
|
||||
self.graphFrame.clearCache(fitID=fit.ID)
|
||||
self.graphFrame.draw()
|
||||
|
||||
def unbindExternalEvents(self):
|
||||
|
||||
Reference in New Issue
Block a user