mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: EventViewOpened only getting called for undocked windows
This commit is contained in:
@@ -790,8 +790,10 @@ namespace hex {
|
||||
view->setFocused(focused);
|
||||
|
||||
// Dock the window if it's not already docked
|
||||
if (view->didWindowJustOpen() && !ImGui::IsWindowDocked()) {
|
||||
ImGui::DockBuilderDockWindow(windowName.c_str(), ImHexApi::System::getMainDockSpaceId());
|
||||
if (view->didWindowJustOpen()) {
|
||||
if (!ImGui::IsWindowDocked())
|
||||
ImGui::DockBuilderDockWindow(windowName.c_str(), ImHexApi::System::getMainDockSpaceId());
|
||||
|
||||
EventViewOpened::post(view.get());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user