ui: Added option to show file directory in code view title (issue #556)
* relative to project file if shorter * checkbox in preferences * not enabled by default
This commit is contained in:
@@ -146,11 +146,21 @@ Application::~Application()
|
||||
}
|
||||
}
|
||||
|
||||
const std::shared_ptr<Project> Application::getCurrentProject()
|
||||
const std::shared_ptr<Project> Application::getCurrentProject() const
|
||||
{
|
||||
return m_project;
|
||||
}
|
||||
|
||||
FilePath Application::getCurrentProjectPath() const
|
||||
{
|
||||
if (m_project)
|
||||
{
|
||||
return m_project->getProjectSettingsFilePath();
|
||||
}
|
||||
|
||||
return FilePath();
|
||||
}
|
||||
|
||||
bool Application::isProjectLoaded() const
|
||||
{
|
||||
if (m_project)
|
||||
|
||||
Reference in New Issue
Block a user