Cleanups. Delete+Move works now.

This commit is contained in:
2025-07-27 22:16:35 +02:00
parent 9361bd333f
commit ce4ef44dcd
10 changed files with 118 additions and 439 deletions

View File

@@ -1,4 +1,5 @@
#include "DirectoryNode.h"
#include "globals.h"
DirectoryNode::DirectoryNode(const String &nodeName)
: name(nodeName), currentPlaying(nullptr)
@@ -465,7 +466,7 @@ String DirectoryNode::getCurrentPlayingFilePath() const
{
if (currentPlaying != nullptr)
{
String filePath = "/" + name;
String filePath = name;
if (!filePath.endsWith("/"))
{
filePath += "/";