Fixes refresh issue with importing from fitting window into empty fit.
This removes a conditional that makes sure we don't fire the FitSelected event if the active fit is same as imported fit. Removing this, to my knowledge, has no adverse effects because when importing we *always* create a new fit (with the exception of the new fitting window import) and thus this conditional is not needed.
This commit is contained in:
@@ -294,8 +294,7 @@ class MainFrame(wx.Frame):
|
||||
|
||||
def _openAfterImport(self, importCount, fitIDs):
|
||||
if importCount == 1:
|
||||
if self.getActiveFit() != fitIDs[0]:
|
||||
wx.PostEvent(self, FitSelected(fitID=fitIDs[0]))
|
||||
wx.PostEvent(self, FitSelected(fitID=fitIDs[0]))
|
||||
|
||||
self.shipBrowser.RefreshContent()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user