Skip to content

Commit

Permalink
Fix an oversight in BeginPopupModal() flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Viceroyy committed Aug 1, 2024
1 parent cee8869 commit 60a61b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Fusion/src/Features/ImGui/Menu/Menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ void CMenu::MenuSettings()
// Dialogs
{
// Save config dialog
if (BeginPopupModal(std::format("Confirmation## SaveConfig{}", configName).c_str(), nullptr, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiChildFlags_AlwaysUseWindowPadding))
if (BeginPopupModal(std::format("Confirmation## SaveConfig{}", configName).c_str(), nullptr, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar))
{
Text(std::format("Do you really want to override '{}'?", configName).c_str());

Expand All @@ -1143,7 +1143,7 @@ void CMenu::MenuSettings()
}

// Delete config dialog
if (BeginPopupModal(std::format("Confirmation## DeleteConfig{}", configName).c_str(), nullptr, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiChildFlags_AlwaysUseWindowPadding))
if (BeginPopupModal(std::format("Confirmation## DeleteConfig{}", configName).c_str(), nullptr, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar))
{
Text(std::format("Do you really want to delete '{}'?", configName).c_str());

Expand Down Expand Up @@ -1212,7 +1212,7 @@ void CMenu::MenuSettings()
// Dialogs
{
// Save config dialog
if (BeginPopupModal(std::format("Confirmation## SaveVisual{}", configName).c_str(), nullptr, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiChildFlags_AlwaysUseWindowPadding))
if (BeginPopupModal(std::format("Confirmation## SaveVisual{}", configName).c_str(), nullptr, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar))
{
Text(std::format("Do you really want to override '{}'?", configName).c_str());

Expand All @@ -1228,7 +1228,7 @@ void CMenu::MenuSettings()
}

// Delete config dialog
if (BeginPopupModal(std::format("Confirmation## DeleteVisual{}", configName).c_str(), nullptr, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiChildFlags_AlwaysUseWindowPadding))
if (BeginPopupModal(std::format("Confirmation## DeleteVisual{}", configName).c_str(), nullptr, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar))
{
Text(std::format("Do you really want to delete '{}'?", configName).c_str());

Expand Down

0 comments on commit 60a61b8

Please sign in to comment.