16 lines
372 B
Plaintext
16 lines
372 B
Plaintext
save_button = function(x, y, r)
|
|
return overflowable_button('save', x, y, r,
|
|
function()
|
|
print('save')
|
|
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 |