sys: Clear project context when closing all providers, Display project name in window title (#860)

* clear project context when closing all providers

* Show project name on window title

* refactor RequestChangeWindowTitle to RequestUpdateWindowTitle

* add spaces
This commit is contained in:
Thomas
2023-01-07 17:31:22 +01:00
committed by GitHub
parent ed831c6fc9
commit ab29303c2e
6 changed files with 35 additions and 13 deletions

View File

@@ -73,7 +73,7 @@ namespace hex {
}
ProjectFile::s_currProjectPath = filePath;
EventManager::post<RequestUpdateWindowTitle>();
return true;
}
@@ -124,4 +124,12 @@ namespace hex {
return !ProjectFile::s_currProjectPath.empty();
}
void ProjectFile::clearPath() {
ProjectFile::s_currProjectPath.clear();
}
std::fs::path ProjectFile::getPath() {
return ProjectFile::s_currProjectPath;
}
}