Skip to content

Commit 5577c7c

Browse files
committed
Show icon in Visualizer window titlebar on Windows
1 parent 61902a1 commit 5577c7c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Source/Processors/Visualization/DataWindow.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ DataWindow::DataWindow (Button* cButton, String name)
3333
centreWithSize (1020, 780);
3434
#ifdef JUCE_WINDOWS
3535
setUsingNativeTitleBar (false);
36+
File iconDir = File::getSpecialLocation (File::currentApplicationFile).getParentDirectory();
37+
Image titleBarIcon = ImageCache::getFromFile (iconDir.getChildFile ("icon-small.png"));
38+
setIcon (titleBarIcon);
3639
#else
3740
setUsingNativeTitleBar (true); // Use native title bar on Mac and Linux
3841
#endif

0 commit comments

Comments
 (0)