mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +01:00
BugFix: give time to Save on exit and stop recordings on Quit
This commit is contained in:
@@ -66,13 +66,13 @@ const std::chrono::milliseconds timeout_ = std::chrono::milliseconds(4);
|
||||
// static multithreaded session saving
|
||||
static void saveSession(const std::string& filename, Session *session, bool with_version)
|
||||
{
|
||||
// lock access while saving
|
||||
session->lock();
|
||||
|
||||
// capture a snapshot of current version if requested
|
||||
if (with_version)
|
||||
Action::manager().snapshot( SystemToolkit::date_time_string());
|
||||
|
||||
// lock access while saving
|
||||
session->lock();
|
||||
|
||||
// save file to disk
|
||||
if ( SessionVisitor::saveSession(filename, session) ) {
|
||||
// all ok
|
||||
|
||||
Reference in New Issue
Block a user