Skip to content

Commit 043199a

Browse files
committed
Fix broken time display on welcome panel
1 parent 096fb5b commit 043199a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Source/Components/WelcomePanel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ class WelcomePanel final : public Component
853853
}
854854
}
855855
auto patch = File(subTree.getProperty("path", ""));
856-
auto time = static_cast<int64>(subTree.getProperty("path", ""));
856+
auto time = static_cast<int64>(subTree.getProperty("time", ""));
857857
auto* tile = recentlyOpenedTiles.add(new WelcomePanelTile(*this, patch, time, silhoutteSvg, favourited, thumbnailImage));
858858

859859
tile->onClick = [this, patchFile, subTree]() mutable {

Source/Utility/SettingsFile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ void SettingsFile::addToRecentlyOpened(URL const& url)
417417
auto* obj = item.getDynamicObject();
418418
auto path = obj->getProperty("path").toString();
419419
if (File(path) == url.getLocalFile()) {
420-
obj->setProperty("time", (int64)Time::getMillisecondCounter());
420+
obj->setProperty("time", (int64)Time::getCurrentTime().toMilliseconds());
421421
#if JUCE_IOS
422422
auto bookmarkData = url.getBookmarkData();
423423
if (bookmarkData.isNotEmpty()) {
@@ -431,7 +431,7 @@ void SettingsFile::addToRecentlyOpened(URL const& url)
431431

432432
auto* obj = new DynamicObject();
433433
obj->setProperty("path", url.getLocalFile().getFullPathName());
434-
obj->setProperty("time", (int64)Time::getMillisecondCounter());
434+
obj->setProperty("time", (int64)Time::getCurrentTime().toMilliseconds());
435435

436436
#if JUCE_IOS
437437
// Store iOS bookmark so that we can recover file permissions later

0 commit comments

Comments
 (0)