Avoid capturing local variables in TitleBarButton.Click closure (#2019)

This commit is contained in:
nebel 2024-08-25 21:57:36 +09:00 committed by GitHub
parent fdfdee1fcb
commit 981387504b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -351,7 +351,7 @@ public abstract class Window
}
}
var additionsPopupName = "WindowSystemContextActions";
const string additionsPopupName = "WindowSystemContextActions";
var flagsApplicableForTitleBarIcons = !flags.HasFlag(ImGuiWindowFlags.NoDecoration) &&
!flags.HasFlag(ImGuiWindowFlags.NoTitleBar);
var showAdditions = (this.AllowPinning || this.AllowClickthrough) &&