A lightweight programming environment for desktop and mobile devices
press_load_button = function()
	Show_menu = nil
	Show_file_dialog = true
	File_dialog_callback = function(filename)
		if filename == '' then
			-- clear filename
			Current_pane.filename = nil
			return
		end
		Current_pane.filename = filename
		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