/trunk/EditorMain.pas |
---|
979,8 → 979,6 |
if FileExists(ScrapFile) then |
begin |
if hMutex = 0 then // If the theme is changed from normal to dark, OnShow will be called another time |
begin |
hMutex := CreateMutex(nil, True, PChar('FastPHP'+IntToStr(StrHash(ScrapFile)))); |
if GetLastError = ERROR_ALREADY_EXISTS then |
begin |
990,7 → 988,6 |
end; |
SynEdit1.Lines.LoadFromFile(ScrapFile); |
end; |
end |
else |
SynEdit1.Lines.Clear; |