bugfix: stop writing repeatedly to disk

This commit is contained in:
Kartik K. Agaram 2023-09-16 22:48:32 -07:00
parent a49e2e6cc8
commit 19f7ac187b
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
on.update = function(dt)
if Global_next_save and Global_next_save < Current_time then
save_graph_to_disk()
Global_next_save = nil
end
if Pan then
Viewport.x = Pan.sx - App.mouse_x()/Viewport.zoom
@ -29,4 +30,4 @@ on.update = function(dt)
else
set_mouse_cursor('arrow')
end
end
end