add: option to disable autosaving (set yb_graph_auto_save_count to 0).
This commit is contained in:
parent
40ee34336f
commit
0f53ab207c
1 changed files with 1 additions and 1 deletions
|
|
@ -673,7 +673,7 @@ void BotGraph::add (int type, const Vector &pos) {
|
|||
}
|
||||
|
||||
// autosave nodes here and there
|
||||
if (++m_autoSaveCount > cv_graph_auto_save_count.int_ ()) {
|
||||
if (cv_graph_auto_save_count.bool_ () && ++m_autoSaveCount > cv_graph_auto_save_count.int_ ()) {
|
||||
if (saveGraphData ()) {
|
||||
ctrl.msg ("Nodes has been autosaved...");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue