mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-22 09:12:19 -05:00
Don't error when file directory doesn't exist.
Instead, ask for a new place to save to.
This commit is contained in:
parent
69899f58fa
commit
25fbd55694
@ -2251,8 +2251,14 @@ begin
|
|||||||
begin
|
begin
|
||||||
Result := (ScriptFile <> '');
|
Result := (ScriptFile <> '');
|
||||||
if Result then
|
if Result then
|
||||||
begin;
|
begin
|
||||||
|
try
|
||||||
SynEdit.Lines.SaveToFile(ScriptFile);
|
SynEdit.Lines.SaveToFile(ScriptFile);
|
||||||
|
except
|
||||||
|
mDebugLn('Cannot save the file. Try specifying a different location.');
|
||||||
|
result := SaveCurrentScriptAs;
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
OnSaveScript(scriptfile);
|
OnSaveScript(scriptfile);
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user