Adding descriptions to enums.
Renaming Enums into more useful names.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import wx
|
||||
import eos.db
|
||||
from logbook import Logger
|
||||
from eos.saveddata.module import Module, State
|
||||
from eos.saveddata.module import Module, FittingModuleState
|
||||
pyfalog = Logger(__name__)
|
||||
|
||||
|
||||
@@ -27,9 +27,9 @@ class FitAddProjectedModuleCommand(wx.Command):
|
||||
except ValueError:
|
||||
return False
|
||||
|
||||
module.state = State.ACTIVE
|
||||
module.state = FittingModuleState.ACTIVE
|
||||
if not module.canHaveState(module.state, fit):
|
||||
module.state = State.OFFLINE
|
||||
module.state = FittingModuleState.OFFLINE
|
||||
fit.projectedModules.append(module)
|
||||
|
||||
eos.db.commit()
|
||||
|
||||
Reference in New Issue
Block a user