open new file when dropped on window
This commit is contained in:
parent
11651bfe62
commit
521d7825c3
|
@ -1,6 +1,5 @@
|
|||
on.quit = function()
|
||||
if Global_next_save then
|
||||
save_graph_to_disk()
|
||||
Global_next_save = nil
|
||||
end
|
||||
end
|
|
@ -0,0 +1,11 @@
|
|||
on.file_drop = function(file)
|
||||
if Global_next_save then
|
||||
save_graph_to_disk()
|
||||
Global_next_save = nil
|
||||
end
|
||||
Filename = file:getFilename()
|
||||
if file_exists(Filename) then
|
||||
load_graph_from_disk()
|
||||
end
|
||||
A()
|
||||
end
|
Loading…
Reference in New Issue