Start working on some undo / redo functionality. this is just the start, only module state changes and fit rename is implemented, and probably not very well x_x
This commit is contained in:
@@ -170,8 +170,11 @@ class Fit(object):
|
||||
def renameFit(fitID, newName):
|
||||
pyfalog.debug("Renaming fit ({0}) to: {1}", fitID, newName)
|
||||
fit = eos.db.getFit(fitID)
|
||||
old_name = fit.name
|
||||
fit.name = newName
|
||||
eos.db.commit()
|
||||
return old_name, newName
|
||||
|
||||
|
||||
@staticmethod
|
||||
def deleteFit(fitID):
|
||||
|
||||
Reference in New Issue
Block a user