mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 21:05:56 -05:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user