diff options
| author | Calvin Morrison <calvin@pobox.com> | 2026-05-17 09:44:33 -0400 |
|---|---|---|
| committer | Calvin Morrison <calvin@pobox.com> | 2026-05-17 09:44:33 -0400 |
| commit | 83ff745b43ebda7b33c52ac1a80a1408c59bfa70 (patch) | |
| tree | 3383f8d54d0523b3ed812957a56e70cb59a01b08 /src/ui/mixerwindow.cpp | |
| parent | 5ccdfbc97811847611ee366848aa4b4b767bd656 (diff) | |
for the pulse peak streams do nothing if windows aren't open to reduce cpu
Diffstat (limited to 'src/ui/mixerwindow.cpp')
| -rw-r--r-- | src/ui/mixerwindow.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/mixerwindow.cpp b/src/ui/mixerwindow.cpp index 53113e6..d8463f1 100644 --- a/src/ui/mixerwindow.cpp +++ b/src/ui/mixerwindow.cpp @@ -448,6 +448,14 @@ void MixerWindow::showEvent( TQShowEvent *e ) c->setGroup("MainWindow"); if ( c->hasKey("XPos") && c->hasKey("YPos") ) move( c->readNumEntry("XPos"), c->readNumEntry("YPos") ); + + m_model->addLevelViewer(); +} + +void MixerWindow::hideEvent( TQHideEvent *e ) +{ + TDEMainWindow::hideEvent( e ); + m_model->removeLevelViewer(); } #include "mixerwindow.moc" |
