Merge pull request #51322 from raulsntos/fix-msbuild-exception

Ensure MSBuildPanel buttons are instantiated
This commit is contained in:
Rémi Verschelde 2021-08-07 12:19:26 +02:00 committed by GitHub
commit 35b08b7cbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,9 +183,13 @@ namespace GodotTools.Build
{
base._Notification(what);
if (what == NotificationThemeChanged) {
if (what == NotificationThemeChanged)
{
if (buildMenuBtn != null)
buildMenuBtn.Icon = GetThemeIcon("Play", "EditorIcons");
if (errorsBtn != null)
errorsBtn.Icon = GetThemeIcon("StatusError", "EditorIcons");
if (warningsBtn != null)
warningsBtn.Icon = GetThemeIcon("NodeWarning", "EditorIcons");
}
}