Refactoring Session saving

use Session::save static method to save a session from a thread (same mechanism as Session::load). It calls Action::takeSnapshot if saving version is required. Mixer is busy during saving, pops up info when done.
This commit is contained in:
Bruno Herbelin
2022-01-17 00:38:48 +01:00
parent e96444671e
commit 81e8d6d99c
7 changed files with 161 additions and 130 deletions

View File

@@ -110,6 +110,7 @@ public:
void merge (SessionSource *source);
void set (Session *session);
void setResolution(glm::vec3 res);
bool busy () const { return busy_; }
// operations depending on transition mode
void close (bool smooth = false);
@@ -146,6 +147,7 @@ protected:
TextureView appearance_;
TransitionView transition_;
bool busy_;
float dt_;
float dt__;
};