ui: Fix rendering and default view initializing

This commit is contained in:
WerWolv
2022-07-07 07:16:38 +02:00
parent b6b5045340
commit c8b7f350ad
2 changed files with 4 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ namespace hex::plugin::builtin {
static std::string s_tipOfTheDay;
[[maybe_unused]] static void loadDefaultLayout() {
static void loadDefaultLayout() {
auto layouts = ContentRegistry::Interface::getLayouts();
if (!layouts.empty()) {
@@ -434,8 +434,8 @@ namespace hex::plugin::builtin {
});
EventManager::subscribe<EventProviderCreated>([](auto) {
//if (!isAnyViewOpen())
//loadDefaultLayout();
if (!isAnyViewOpen())
loadDefaultLayout();
});
ContentRegistry::Interface::addMenuItem("hex.builtin.menu.file", 1075, [&] {