Add ProgressBar to GUI for Event Insertion/Deletion

- Added logging to GUI Undo functionality
- Added support for hyphens in data input
- Indent encoded JSONPickle output
This commit is contained in:
Xevion
2021-08-27 00:26:12 -05:00
parent 4571a47910
commit 27da721d79
5 changed files with 44 additions and 24 deletions

View File

@@ -31,7 +31,7 @@ class HistoryManager(object):
"""Save data to the undo history file."""
logger.info('Saving to undo history file.')
with open(self.file, 'w') as file:
file.write(jsonpickle.encode(self.stages))
file.write(jsonpickle.encode(self.stages, indent=4))
def getTotal(self) -> int:
"""Returns the total number of undoable events known."""