Remove price cache clear menu item
This commit is contained in:
@@ -142,7 +142,6 @@ class Effect(EqBase):
|
||||
"""
|
||||
if not self.__generated:
|
||||
self.__generateHandler()
|
||||
|
||||
return self.__effectDef is not None
|
||||
|
||||
def isType(self, type):
|
||||
@@ -151,7 +150,6 @@ class Effect(EqBase):
|
||||
"""
|
||||
if not self.__generated:
|
||||
self.__generateHandler()
|
||||
|
||||
return self.type is not None and type in self.type
|
||||
|
||||
def __generateHandler(self):
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
from gui.contextMenu import ContextMenu
|
||||
import gui.mainFrame
|
||||
# noinspection PyPackageRequirements
|
||||
import wx
|
||||
import gui.globalEvents as GE
|
||||
from service.price import Price
|
||||
from service.settings import ContextMenuSettings
|
||||
|
||||
|
||||
class PriceClear(ContextMenu):
|
||||
def __init__(self):
|
||||
self.mainFrame = gui.mainFrame.MainFrame.getInstance()
|
||||
self.settings = ContextMenuSettings.getInstance()
|
||||
|
||||
def display(self, srcContext, selection):
|
||||
if not self.settings.get('priceClear'):
|
||||
return False
|
||||
|
||||
return srcContext in ("priceViewFull", "priceViewMinimal")
|
||||
|
||||
def getText(self, itmContext, selection):
|
||||
return "Reset Price Cache"
|
||||
|
||||
def activate(self, fullContext, selection, i):
|
||||
sPrc = Price.getInstance()
|
||||
sPrc.clearPriceCache()
|
||||
wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=self.mainFrame.getActiveFit()))
|
||||
|
||||
|
||||
PriceClear.register()
|
||||
@@ -208,7 +208,6 @@ from gui.builtinContextMenus import ( # noqa: E402,F401
|
||||
changeAffectingSkills,
|
||||
tacticalMode,
|
||||
targetResists,
|
||||
priceClear,
|
||||
priceOptions,
|
||||
amount,
|
||||
cargoAmmo,
|
||||
|
||||
@@ -438,12 +438,6 @@ class StatViewSettings(object):
|
||||
"outgoing" : 2,
|
||||
}
|
||||
|
||||
# We don't have these....yet
|
||||
'''
|
||||
"miningyield": 2,
|
||||
"drones": 2
|
||||
'''
|
||||
|
||||
self.serviceStatViewDefaultSettings = SettingsProvider.getInstance().getSettings("pyfaServiceStatViewSettings", serviceStatViewDefaultSettings)
|
||||
|
||||
def get(self, type):
|
||||
@@ -519,7 +513,6 @@ class ContextMenuSettings(object):
|
||||
"moduleAmmoPicker" : 1,
|
||||
"moduleGlobalAmmoPicker": 1,
|
||||
"openFit" : 1,
|
||||
"priceClear" : 1,
|
||||
"project" : 1,
|
||||
"shipJump" : 1,
|
||||
"tacticalMode" : 1,
|
||||
|
||||
Reference in New Issue
Block a user