mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
fix: Window header always displaying (Read Only) after opening a provider
This commit is contained in:
@@ -114,14 +114,15 @@ namespace hex {
|
||||
|
||||
if (ImHexApi::Provider::isValid()) {
|
||||
auto provider = ImHexApi::Provider::get();
|
||||
if (!windowTitle.empty())
|
||||
if (!windowTitle.empty() && provider != nullptr) {
|
||||
title += " - " + windowTitle;
|
||||
|
||||
if (provider->isDirty())
|
||||
title += " (*)";
|
||||
if (provider->isDirty())
|
||||
title += " (*)";
|
||||
|
||||
if (!provider->isWritable())
|
||||
title += " (Read Only)";
|
||||
if (!provider->isWritable())
|
||||
title += " (Read Only)";
|
||||
}
|
||||
}
|
||||
|
||||
this->m_windowTitle = title;
|
||||
|
||||
Reference in New Issue
Block a user