mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-05 15:30:00 +01:00
Do not keep custom thumbnail of session with 'Save as'
This commit is contained in:
@@ -1301,11 +1301,13 @@ View *Mixer::view(View::Mode m)
|
||||
void Mixer::save(bool with_version)
|
||||
{
|
||||
if (!session_->filename().empty())
|
||||
saveas(session_->filename(), with_version);
|
||||
saveas(session_->filename(), with_version, true);
|
||||
}
|
||||
|
||||
void Mixer::saveas(const std::string& filename, bool with_version)
|
||||
void Mixer::saveas(const std::string& filename, bool with_version, bool with_thumbail)
|
||||
{
|
||||
if (!with_thumbail)
|
||||
session_->resetThumbnail();
|
||||
// optional copy of views config
|
||||
session_->config(View::MIXING)->copyTransform( mixing_.scene.root() );
|
||||
session_->config(View::GEOMETRY)->copyTransform( geometry_.scene.root() );
|
||||
|
||||
@@ -112,7 +112,7 @@ public:
|
||||
inline Session * session () const { return session_; }
|
||||
void clear ();
|
||||
void save (bool with_version = false);
|
||||
void saveas (const std::string& filename, bool with_version = false);
|
||||
void saveas (const std::string& filename, bool with_version = false, bool with_thumbail = false);
|
||||
void load (const std::string& filename);
|
||||
void import (const std::string& filename);
|
||||
void import (SessionSource *source);
|
||||
|
||||
Reference in New Issue
Block a user