From 83ff745b43ebda7b33c52ac1a80a1408c59bfa70 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Sun, 17 May 2026 09:44:33 -0400 Subject: for the pulse peak streams do nothing if windows aren't open to reduce cpu --- src/ui/mixerwindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ui/mixerwindow.cpp') 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" -- cgit v1.2.3