press_load_button = function() Show_menu = nil Show_file_dialog = true File_dialog_callback = function(filename, is_stash) if filename == '' then -- clear filename Current_pane.filename = nil return end Current_pane.filename = filename Current_pane.is_stash = is_stash one_time_load() -- Load new filename in future sessions. -- On mobile devices, we can't depend on on.save_settings() triggering on quit. love.filesystem.write('config', json.encode(settings())) end end