Skip to content

Commit

Permalink
Merge pull request #5734 from Abel032/Change-NodeName-of-Project-root…
Browse files Browse the repository at this point in the history
…-to-foldername

Change Name of Projects Node in file browser to Dirname (DirPath)
  • Loading branch information
RodneyBaker authored Jan 23, 2025
2 parents 4b02b50 + 822d2e0 commit 5f1788c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions toonz/sources/toonz/filebrowsermodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ DvDirModelFileFolderNode *DvDirModelFileFolderNode::createNode(
DvDirModelNode *parent, const TFilePath &path) {
DvDirModelFileFolderNode *node;
// check the project nodes under the Project Root Node
if (QString::fromStdWString(parent->getName()).startsWith("Project root") &&
if (QString::fromStdWString(parent->getName()).startsWith("*") &&
TProjectManager::instance()->isProject(path))
node = new DvDirModelProjectNode(parent, path);
else {
Expand Down Expand Up @@ -1084,10 +1084,13 @@ void DvDirModelRootNode::refreshChildren() {
int i;
for (i = 0; i < (int)projectRoots.size(); i++) {
TFilePath projectRoot = projectRoots[i];
std::wstring roothDir = projectRoot.getWideString();
std::wstring rootDir = projectRoot.getWideString();
DvDirModelSpecialFileFolderNode *projectRootNode =
new DvDirModelSpecialFileFolderNode(
this, L"Project root (" + roothDir + L")", projectRoot);
this,
L"*" + projectRoot.withoutParentDir().getWideString()
+ L" (" +rootDir + L")",
projectRoot);
projectRootNode->setPixmap(
QPixmap(generateIconPixmap("folder_project_root")));
m_projectRootNodes.push_back(projectRootNode);
Expand Down

0 comments on commit 5f1788c

Please sign in to comment.