Do not allow to open more than 1 ammo pickers

This commit is contained in:
DarkPhoenix
2019-11-13 18:45:43 +03:00
parent 7ba5585b83
commit b05bd04801
2 changed files with 7 additions and 4 deletions

View File

@@ -26,8 +26,7 @@ class GraphFitAmmoPicker(ContextMenuSingle):
return 'Plot with Different Ammo...'
def activate(self, callingWindow, fullContext, mainItem, i):
window = AmmoPickerFrame(callingWindow, mainItem.item)
window.Show()
AmmoPickerFrame.openOne(callingWindow, mainItem.item, forceReopen=True)
GraphFitAmmoPicker.register()