project: added revert function

This can be triggered either with File > Revert or by re-opening an already open project

Fixes #1710
This commit is contained in:
itsmattkc
2021-08-09 11:37:45 -07:00
parent 72d71ddf8c
commit 420042bb57
4 changed files with 67 additions and 2 deletions
+7
View File
@@ -329,6 +329,11 @@ public slots:
*/
bool SaveAllProjects();
/**
* @brief Revert project to last saved state (basically close and open it)
*/
void RevertActiveProject();
/**
* @brief Closes the active project
*
@@ -506,6 +511,8 @@ private:
void SaveUnrecoveredList();
bool RevertProjectInternal(Project *p, bool by_opening_existing);
/**
* @brief Internal main window object
*/