ui: Limit window title length

This commit is contained in:
WerWolv
2022-11-04 15:19:24 +01:00
parent 48e9d3b4e9
commit 291da649c1
4 changed files with 6 additions and 6 deletions

View File

@@ -121,7 +121,7 @@ namespace hex {
if (ImHexApi::Provider::isValid()) {
auto provider = ImHexApi::Provider::get();
if (!windowTitle.empty() && provider != nullptr) {
title += " - " + windowTitle;
title += " - " + hex::limitStringLength(windowTitle, 32);
if (provider->isDirty())
title += " (*)";