1
0
mirror of synced 2025-02-17 18:59:21 +01:00

impr: Don't draw recents window if there are none

This commit is contained in:
WerWolv 2023-11-18 15:11:12 +01:00
parent 14f728ab76
commit 331716dd48

View File

@ -170,6 +170,9 @@ namespace hex::plugin::builtin::recent {
void draw() { void draw() {
if (s_recentEntries.empty())
return;
ImGuiExt::BeginSubWindow("hex.builtin.welcome.start.recent"_lang, ImVec2(), ImGuiChildFlags_AutoResizeX); ImGuiExt::BeginSubWindow("hex.builtin.welcome.start.recent"_lang, ImVec2(), ImGuiChildFlags_AutoResizeX);
{ {
if (!s_recentEntriesUpdating) { if (!s_recentEntriesUpdating) {