mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-02-04 11:28:40 -06:00
ux: Show currently loaded file name in window name
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
#undef __STRICT_ANSI__
|
||||
#include <cstdio>
|
||||
|
||||
#include <filesystem>
|
||||
|
||||
namespace hex {
|
||||
|
||||
ViewHexEditor::ViewHexEditor(std::vector<lang::PatternData*> &patternData)
|
||||
@@ -171,6 +173,10 @@ namespace hex {
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
EventManager::subscribe<EventFileLoaded>(this, [](std::string path) {
|
||||
EventManager::post<RequestChangeWindowTitle>(std::filesystem::path(path).filename().string());
|
||||
});
|
||||
}
|
||||
|
||||
ViewHexEditor::~ViewHexEditor() {
|
||||
|
||||
Reference in New Issue
Block a user