mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-25 02:04:23 +00:00
BLOCKS: Fixed issue preventing update of blocks version numbers after updating over API/DNA/Topology.
This commit is contained in:
parent
6383b05d7f
commit
42826ae93c
1 changed files with 3 additions and 4 deletions
|
|
@ -362,10 +362,9 @@ struct PhysicalTopologySource::Internal
|
|||
|
||||
static bool versionNumberAddedToBlock (const juce::Array<DeviceInfo>& devices, Block::UID uid, juce::String version) noexcept
|
||||
{
|
||||
if (version.length() == 0)
|
||||
for (auto&& d : devices)
|
||||
if (d.uid == uid && d.version.length)
|
||||
return true;
|
||||
for (auto&& d : devices)
|
||||
if (d.uid == uid && memcmp (d.version.version, version.toRawUTF8(), d.version.length) != 0)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue