mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-21 16:55:01 -05:00
Extensions: Fixed OpenScript Name problem.
This commit is contained in:
parent
cc56f02cee
commit
a9a0c4fd49
@ -129,10 +129,10 @@ begin
|
||||
Result := ReplaceRegExpr('([N|n][A|a][M|m][E|e]|[P|p][A|a][S|s]{2}|[P|p][I|i][N|n])\s*\:\=\s*\''.*?\'';', Result, '$1 := ''*********'';', True);
|
||||
end;
|
||||
|
||||
procedure ext_OpenScript(Name, Data: string; Run: boolean);
|
||||
procedure ext_OpenScript(vName, Data: string; Run: boolean);
|
||||
begin
|
||||
if (Name = '') then
|
||||
Name := 'Untitled';
|
||||
if (vName = '') then
|
||||
vName := 'Untitled';
|
||||
|
||||
with SimbaForm do
|
||||
begin
|
||||
@ -140,7 +140,8 @@ begin
|
||||
with CurrScript do
|
||||
begin
|
||||
SynEdit.Lines.Text := Data;
|
||||
ScriptName := Name;
|
||||
ScriptName := vName;
|
||||
ScriptChanged := True;
|
||||
end;
|
||||
RefreshTab();
|
||||
UpdateTitle();
|
||||
|
Loading…
Reference in New Issue
Block a user