Rework FitChanged command to avoid refreshing graph multiple times in certain cases
This commit is contained in:
@@ -24,8 +24,7 @@ class FactorReload(ContextMenuUnconditional):
|
||||
|
||||
def activate(self, fullContext, i):
|
||||
fitIDs = Fit.getInstance().toggleFactorReload()
|
||||
for fitID in fitIDs:
|
||||
wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=fitID))
|
||||
wx.PostEvent(self.mainFrame, GE.FitChanged(fitIDs=tuple(fitIDs)))
|
||||
|
||||
@property
|
||||
def checked(self):
|
||||
|
||||
Reference in New Issue
Block a user