mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 13:05:25 -05:00
fix: Workspaces not always loading layout correctly
This commit is contained in:
@@ -760,8 +760,6 @@ namespace hex {
|
||||
void Window::frame() {
|
||||
auto &io = ImGui::GetIO();
|
||||
|
||||
this->m_anyViewsOpen = ImHexApi::Provider::isValid();
|
||||
|
||||
// Loop through all views and draw them
|
||||
for (auto &[name, view] : ContentRegistry::Views::impl::getEntries()) {
|
||||
ImGui::GetCurrentContext()->NextWindowData.ClearFlags();
|
||||
@@ -854,8 +852,8 @@ namespace hex {
|
||||
|
||||
// Process layout load requests
|
||||
// NOTE: This needs to be done before a new frame is started, otherwise ImGui won't handle docking correctly
|
||||
if (this->m_anyViewsOpen)
|
||||
LayoutManager::process();
|
||||
LayoutManager::process();
|
||||
WorkspaceManager::process();
|
||||
}
|
||||
|
||||
void Window::initGLFW() {
|
||||
|
||||
Reference in New Issue
Block a user