1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Added workaround to fix a false re-save warning in the Projucer when saving a .jucer file on a network drive

This commit is contained in:
hogliux 2016-12-05 10:39:50 +00:00
parent 1ecc6867cb
commit c5d3c26af6

View file

@ -380,14 +380,11 @@ void Project::valueTreeParentChanged (ValueTree&) {}
bool Project::hasProjectBeenModified()
{
Time newModificationTime = getFile().getLastModificationTime();
Time oldModificationTime = modificationTime;
if (newModificationTime != modificationTime)
{
modificationTime = newModificationTime;
return true;
}
modificationTime = newModificationTime;
return false;
return (newModificationTime.toMilliseconds() > (oldModificationTime.toMilliseconds() + 1000LL));
}
//==============================================================================