Skip to content

Commit 833bd1b

Browse files
committed
Fix assert warning on Linux
1 parent e956564 commit 833bd1b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/Utility/SettingsFile.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,10 @@ void SettingsFile::addToRecentlyOpened(File const& path)
362362
ValueTree subTree("Path");
363363
subTree.setProperty("Path", path.getFullPathName(), nullptr);
364364
subTree.setProperty("Time", Time::getCurrentTime().toMilliseconds(), nullptr);
365+
#if JUCE_MAC || JUCE_WINDOWS
365366
if (path.isOnRemovableDrive())
366367
subTree.setProperty("Removable", var(1), nullptr);
368+
#endif
367369
recentlyOpened.addChild(subTree, 0, nullptr);
368370
}
369371

0 commit comments

Comments
 (0)