@@ -1776,7 +1776,7 @@ void MainWindow::changeGUITransparency(int val)
1776
1776
1777
1777
void MainWindow::changeSystemPreAmp (int val, int silent)
1778
1778
{
1779
- std::cout << " [GUI] Change Volume to " << val << std::endl;
1779
+ std::cout << " [GUI] - Change Volume to " << val << std::endl;
1780
1780
float v = (float )val;
1781
1781
v = (v / 100.0 ) * 2.0 ;
1782
1782
Message msg (" /mixer-amp" );
@@ -3311,25 +3311,29 @@ SonicPiScintilla* MainWindow::filenameToWorkspace(std::string filename)
3311
3311
3312
3312
void MainWindow::onExitCleanup ()
3313
3313
{
3314
- if (scopeWindow)
3314
+ std::cout << " [GUI] - initiating Shutdown..." << std::endl;
3315
+
3316
+ if (scopeWindow)
3315
3317
{
3318
+ std::cout << " [GUI] - shutting down scope..." << std::endl;
3316
3319
scopeWindow->ShutDown ();
3317
3320
}
3318
3321
3319
- if (m_spClient)
3322
+ if (m_spClient)
3320
3323
{
3321
- if (loaded_workspaces)
3324
+ if (loaded_workspaces)
3322
3325
{
3323
3326
// this should be a synchorous call to avoid the following sleep
3324
3327
saveWorkspaces ();
3325
3328
}
3326
- std::this_thread::sleep_for (1s);
3327
3329
3328
- // Do this before closing the client, so the io redirect happens after
3329
- std::cout << " [GUI] - exiting. Cheerio :-)" << std::endl;
3330
+ std::this_thread::sleep_for (1s);
3331
+
3332
+ // Do this before closing the client, so the io redirect happens after
3333
+ std::cout << " [GUI] - exiting. Cheerio :-)" << std::endl;
3330
3334
3331
- // Shuts down the client/server connection
3332
- m_spAPI->Shutdown ();
3335
+ // Shuts down the client/server connection
3336
+ m_spAPI->Shutdown ();
3333
3337
}
3334
3338
}
3335
3339
@@ -3340,17 +3344,18 @@ void MainWindow::restartApp() {
3340
3344
// Save settings and perform some cleanup
3341
3345
writeSettings ();
3342
3346
onExitCleanup ();
3343
- std::cout << " Performing application restart..." << std::endl;
3347
+
3348
+ std::cout << " [GUI] - performing application restart..." << std::endl;
3344
3349
3345
3350
// Create new process
3346
3351
QStringList args = qApp->arguments ();
3347
3352
args.removeFirst ();
3348
3353
QProcess process;
3349
3354
bool restart_success = process.startDetached (qApp->arguments ()[0 ], args);
3350
3355
if (restart_success) {
3351
- std::cout << " Successfully restarted sonic-pi" << std::endl;
3356
+ std::cout << " [GUI] - successfully restarted sonic-pi" << std::endl;
3352
3357
} else {
3353
- std::cout << " Failed to restart sonic-pi" << std::endl;
3358
+ std::cout << " [GUI] - failed to restart sonic-pi" << std::endl;
3354
3359
}
3355
3360
3356
3361
// Quit
0 commit comments