mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-01 21:17:44 -05:00
impr: Only show remaining Open File / New File menu options when they make sense
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
#include <ranges>
|
||||
#include <unordered_set>
|
||||
#include <hex/api/content_registry/views.hpp>
|
||||
#include <hex/helpers/menu_items.hpp>
|
||||
|
||||
namespace hex::plugin::builtin::recent {
|
||||
@@ -426,6 +427,6 @@ namespace hex::plugin::builtin::recent {
|
||||
}
|
||||
}, [] {
|
||||
return TaskManager::getRunningTaskCount() == 0 && !s_recentEntriesUpdating && !s_recentEntries.empty();
|
||||
});
|
||||
}, ContentRegistry::Views::getViewByName("hex.builtin.view.hex_editor.name"), true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user