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:
parent
1ecc6867cb
commit
c5d3c26af6
1 changed files with 3 additions and 6 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue