mirror of
https://github.com/ocornut/imgui.git
synced 2025-10-26 12:27:30 +00:00
@@ -18873,8 +18873,6 @@ static void ImGui::DockNodeUpdateTabBar(ImGuiDockNode* node, ImGuiWindow* host_w
|
|||||||
ImGuiStyle& style = g.Style;
|
ImGuiStyle& style = g.Style;
|
||||||
|
|
||||||
const bool node_was_active = (node->LastFrameActive + 1 == g.FrameCount);
|
const bool node_was_active = (node->LastFrameActive + 1 == g.FrameCount);
|
||||||
const bool closed_all = node->WantCloseAll && node_was_active;
|
|
||||||
const ImGuiID closed_one = node->WantCloseTabId && node_was_active;
|
|
||||||
node->WantCloseAll = false;
|
node->WantCloseAll = false;
|
||||||
node->WantCloseTabId = 0;
|
node->WantCloseTabId = 0;
|
||||||
|
|
||||||
@@ -19026,8 +19024,6 @@ static void ImGui::DockNodeUpdateTabBar(ImGuiDockNode* node, ImGuiWindow* host_w
|
|||||||
for (int window_n = 0; window_n < node->Windows.Size; window_n++)
|
for (int window_n = 0; window_n < node->Windows.Size; window_n++)
|
||||||
{
|
{
|
||||||
ImGuiWindow* window = node->Windows[window_n];
|
ImGuiWindow* window = node->Windows[window_n];
|
||||||
if ((closed_all || closed_one == window->TabId) && window->HasCloseButton && !(window->Flags & ImGuiWindowFlags_UnsavedDocument))
|
|
||||||
continue;
|
|
||||||
if (window->LastFrameActive + 1 >= g.FrameCount || !node_was_active)
|
if (window->LastFrameActive + 1 >= g.FrameCount || !node_was_active)
|
||||||
{
|
{
|
||||||
ImGuiTabItemFlags tab_item_flags = 0;
|
ImGuiTabItemFlags tab_item_flags = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user