@@ -415,6 +415,7 @@ void MainWindow::setupWindowStructure()
415
415
errorPane = new QTextBrowser;
416
416
metroPane = new SonicPiMetro (m_spClient, m_spAPI, theme, this );
417
417
418
+
418
419
connect (metroPane, SIGNAL (linkEnabled ()), this , SLOT (checkEnableLinkMenu ()));
419
420
connect (metroPane, SIGNAL (linkDisabled ()), this , SLOT (uncheckEnableLinkMenu ()));
420
421
@@ -1365,22 +1366,9 @@ void MainWindow::enableScsynthInputsMenuChanged()
1365
1366
changeEnableScsynthInputs ();
1366
1367
}
1367
1368
1368
- void MainWindow::enableLinkMenuChanged ()
1369
- {
1370
- if (enableLinkAct->isChecked ())
1371
- {
1372
- metroPane->linkEnable ();
1373
- }
1374
- else
1375
- {
1376
- metroPane->linkDisable ();
1377
- }
1378
- }
1379
-
1380
1369
void MainWindow::toggleLinkMenu ()
1381
1370
{
1382
- enableLinkAct->setChecked (!enableLinkAct->isChecked ());
1383
- enableLinkMenuChanged ();
1371
+ metroPane->toggleLink ();
1384
1372
}
1385
1373
1386
1374
void MainWindow::uncheckEnableLinkMenu ()
@@ -3538,6 +3526,7 @@ void MainWindow::createToolBar()
3538
3526
enableLinkAct->setChecked (false );
3539
3527
connect (enableLinkAct, SIGNAL (triggered ()), this , SLOT (toggleLinkMenu ()));
3540
3528
3529
+
3541
3530
linkTapTempoAct = new QAction (tr (" Tap Tempo" ), this );
3542
3531
connect (linkTapTempoAct, SIGNAL (triggered ()), metroPane, SLOT (tapTempo ()));
3543
3532
0 commit comments