File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ class OpenEphysApplication : public JUCEApplication
105105 // ==============================================================================
106106 void systemRequestedQuit ()
107107 {
108+ mainWindow->shutDownGUI ();
108109 // std::cout << "Quit requested" << std::endl;
109110 quit ();
110111 }
Original file line number Diff line number Diff line change @@ -124,16 +124,20 @@ MainWindow::~MainWindow()
124124}
125125
126126void MainWindow::closeButtonPressed ()
127+ {
128+
129+ JUCEApplication::getInstance ()->systemRequestedQuit ();
130+
131+ }
132+
133+ void MainWindow::shutDownGUI ()
127134{
128135 if (audioComponent->callbacksAreActive ())
129136 {
130137 audioComponent->endCallbacks ();
131138 }
132139
133140 processorGraph->disableProcessors ();
134-
135- JUCEApplication::getInstance ()->systemRequestedQuit ();
136-
137141}
138142
139143void MainWindow::saveWindowBounds ()
Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ class MainWindow : public DocumentWindow
6262 /* * Determines whether the last used configuration reloads upon startup. */
6363 bool shouldReloadOnStartup;
6464
65+ void shutDownGUI ();
66+
6567private:
6668
6769 /* * Saves the MainWindow's boundaries into the file "windowState.xml", located in the directory
You can’t perform that action at this time.
0 commit comments