From 331716dd4818037816d623941a1070e92ad0f7ce Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 18 Nov 2023 15:11:12 +0100 Subject: [PATCH] impr: Don't draw recents window if there are none --- plugins/builtin/source/content/recent.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/builtin/source/content/recent.cpp b/plugins/builtin/source/content/recent.cpp index 4a1d9f3ea..9c14a2246 100644 --- a/plugins/builtin/source/content/recent.cpp +++ b/plugins/builtin/source/content/recent.cpp @@ -170,6 +170,9 @@ namespace hex::plugin::builtin::recent { void draw() { + if (s_recentEntries.empty()) + return; + ImGuiExt::BeginSubWindow("hex.builtin.welcome.start.recent"_lang, ImVec2(), ImGuiChildFlags_AutoResizeX); { if (!s_recentEntriesUpdating) {