We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d819ef6 commit 4a1ae49Copy full SHA for 4a1ae49
demo/source/core/SharedObjects.cpp
@@ -149,7 +149,15 @@ void SharedObjects::restoreWindowDimensions (DocumentWindow& dw)
149
150
Image SharedObjects::getWindowIcon()
151
{
152
- return ImageCache::getFromMemory (BinaryData::SquarePine_Logo_png, BinaryData::SquarePine_Logo_pngSize);
+ static Image windowIcon;
153
+
154
+ if (windowIcon.isNull())
155
+ {
156
+ windowIcon = ImageCache::getFromMemory (BinaryData::SquarePine_Logo_png, BinaryData::SquarePine_Logo_pngSize);
157
+ windowIcon.setBackupEnabled (false);
158
+ }
159
160
+ return windowIcon;
161
}
162
163
//==============================================================================
0 commit comments