mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-08 04:20:09 +00:00
Made the juce demo clean up in the right order when quitting, to avoid problems with the GL demo.
This commit is contained in:
parent
6a952d2e0b
commit
c6dcbe5739
1 changed files with 6 additions and 0 deletions
|
|
@ -117,6 +117,11 @@ public:
|
|||
demoList.selectRow (0);
|
||||
}
|
||||
|
||||
void clearCurrentDemo()
|
||||
{
|
||||
currentDemo = nullptr;
|
||||
}
|
||||
|
||||
void resized() override
|
||||
{
|
||||
Rectangle<int> r (getLocalBounds());
|
||||
|
|
@ -509,6 +514,7 @@ MainAppWindow::MainAppWindow()
|
|||
|
||||
MainAppWindow::~MainAppWindow()
|
||||
{
|
||||
contentComponent->clearCurrentDemo();
|
||||
clearContentComponent();
|
||||
contentComponent = nullptr;
|
||||
applicationCommandManager = nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue