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:
blitzmann
2018-07-21 00:12:28 -04:00
parent e9cb7696dd
commit 926e0a9035
7 changed files with 75 additions and 7 deletions

View File

@@ -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):