diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-12-05 15:50:19 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-12-05 15:50:19 -0800 |
commit | 076611fbb5ddb1756a2dcb4a04f54b823c3ef68d (patch) | |
tree | c624b8ea6befb1ecc4e627bb0f609802b30e7e69 | |
parent | f9bea7783b4779172543901c14a02c18c50ad4f4 (diff) | |
download | text.love-076611fbb5ddb1756a2dcb4a04f54b823c3ef68d.tar.gz |
save state when clearing logs
-rw-r--r-- | source.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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() |