pyCharm inspection fixes. Mostly variable refernce issues
This commit is contained in:
@@ -157,7 +157,7 @@ class ModuleAmmoPicker(ContextMenu):
|
||||
item = self.addCharge(rootMenu if msw else m, charge)
|
||||
items.append(item)
|
||||
else:
|
||||
if sub is None:
|
||||
if sub is None and item and base:
|
||||
sub = wx.Menu()
|
||||
sub.Bind(wx.EVT_MENU, self.handleAmmoSwitch)
|
||||
self.addSeperator(sub, "Less Damage")
|
||||
|
||||
@@ -9,6 +9,7 @@ from service.fit import Fit
|
||||
|
||||
class ModuleGlobalAmmoPicker(ModuleAmmoPicker):
|
||||
def __init__(self):
|
||||
super(ModuleGlobalAmmoPicker, self).__init__()
|
||||
self.mainFrame = gui.mainFrame.MainFrame.getInstance()
|
||||
|
||||
def getText(self, itmContext, selection):
|
||||
|
||||
Reference in New Issue
Block a user