ide: Fixed issue with new file automatic #include line being erased by CheckFileUpdate

This commit is contained in:
Mirek Fidler 2025-05-01 13:06:15 +02:00
parent 2aa3792c64
commit 383bf9ce4b

View file

@ -860,7 +860,7 @@ void Ide::EditFile(const String& p)
void Ide::CheckFileUpdate()
{
if(editfile.IsEmpty() || !IsForeground() || designer) return;
if(editfile.IsEmpty() || !IsForeground() || designer || !FileExists(editfile)) return;
FileTime tm = GetFileTime(editfile);
if(tm == edittime) return;
edittime = tm;