Do not rely on resistance view being available

This commit is contained in:
DarkPhoenix
2019-09-29 11:21:00 +03:00
parent fd017df561
commit 0bb732300e
2 changed files with 12 additions and 5 deletions

View File

@@ -612,7 +612,10 @@ class Miscellanea(ViewColumn):
fit = Fit.getInstance().getFit(self.fittingView.getActiveFit())
ehpTotal = fit.ehp
hpTotal = fit.hp
useEhp = self.mainFrame.statsPane.nameViewMap["resistancesViewFull"].showEffective
try:
useEhp = self.mainFrame.statsPane.nameViewMap["resistancesViewFull"].showEffective
except KeyError:
useEhp = False
tooltip = "{0} restored over duration using charges (plus reload)".format(boosted_attribute)
if useEhp and boosted_attribute == "HP" and "Remote" not in itemGroup: