save_button = function(x, y, r) return overflowable_button('save', x, y, r, function() Show_menu = nil if Current_pane.filename == nil then Show_file_dialog = true File_dialog_callback = function(filename) if filename == '' then return end Current_pane.filename = filename one_time_save() end else one_time_save() end end) end