ui: show '.' as directory in file title if file is within project root
This commit is contained in:
@@ -148,6 +148,11 @@ void QtCodeFileTitleButton::updateTexts()
|
||||
directory = directoryRelative;
|
||||
}
|
||||
|
||||
if (directory.size() && directory.back() == L'/')
|
||||
{
|
||||
directory.pop_back();
|
||||
}
|
||||
|
||||
title = directory + L" - " + title;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user