about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-12-05 15:53:27 -0800
committerKartik K. Agaram <vc@akkartik.com>2022-12-05 15:53:27 -0800
commit54d2d3ed4d9a16ecf3fc71473fffd5a737173430 (patch)
tree3f8d127025ce70c94e80b6bf2332569a3290ba40
parentec86d7587de2bdbc9932c4c287c3997a8fa04460 (diff)
parent076611fbb5ddb1756a2dcb4a04f54b823c3ef68d (diff)
downloadtext.love-54d2d3ed4d9a16ecf3fc71473fffd5a737173430.tar.gz
Merge lines.love
-rw-r--r--source.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/source.lua b/source.lua
index 5e917fb..b04b5b3 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()