avoid redundant writes on exit

This commit is contained in:
Kartik K. Agaram 2022-06-29 17:36:56 -07:00
parent feba7bf3c2
commit 9410cccb08
1 changed files with 3 additions and 1 deletions

View File

@ -323,7 +323,9 @@ end
-- make sure to save before quitting
function love.quit()
save_to_disk(Lines, Filename)
if Next_save then
save_to_disk(Lines, Filename)
end
end
function App.mousepressed(x,y, mouse_button)