Keep showing log if force enabled

pull/184/head
Peter Repukat 2 years ago
parent fe2f3a54c8
commit 1e89797ce7

@ -250,7 +250,7 @@ void Overlay::showLogs(ImGuiID dockspace_id)
return res;
});
}
if (logs.empty() || ( !enabled_ && !logs_contain_warn_or_worse && time_since_start_clock_.getElapsedTime().asSeconds() > HIDE_NORMAL_LOGS_AFTER_S))
if (logs.empty() || ( !enabled_ && !force_enable_ && !logs_contain_warn_or_worse && time_since_start_clock_.getElapsedTime().asSeconds() > HIDE_NORMAL_LOGS_AFTER_S))
return;
ImGui::SetNextWindowSizeConstraints({150, 150}, {1000, window_.getSize().y - 250.f});
if (!enabled_) {

Loading…
Cancel
Save