From 076611fbb5ddb1756a2dcb4a04f54b823c3ef68d Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 5 Dec 2022 15:50:19 -0800 Subject: save state when clearing logs --- source.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source.lua') diff --git a/source.lua b/source.lua index 096512b..f34c663 100644 --- a/source.lua +++ b/source.lua @@ -367,7 +367,9 @@ function source.keychord_pressed(chord, key) -- clear logs love.filesystem.remove('log') -- restart to reload state of logs on screen + Settings.source = source.settings() source.quit() + love.filesystem.write('config', json.encode(Settings)) load_file_from_source_or_save_directory('main.lua') App.undo_initialize() App.run_tests_and_initialize() -- cgit 1.4.1-2-gfad0