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/tmixpopup.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ui/tmixpopup.cpp') diff --git a/src/ui/tmixpopup.cpp b/src/ui/tmixpopup.cpp index 85a0c54..2cdd16a 100644 --- a/src/ui/tmixpopup.cpp +++ b/src/ui/tmixpopup.cpp @@ -169,10 +169,17 @@ bool TmixPopup::justHidden() const return m_hideTime.isValid() && m_hideTime.elapsed() < 100; } +void TmixPopup::showEvent( TQShowEvent *e ) +{ + TQWidget::showEvent( e ); + m_model->addLevelViewer(); +} + void TmixPopup::hideEvent( TQHideEvent *e ) { TQWidget::hideEvent( e ); m_hideTime.start(); + m_model->removeLevelViewer(); } void TmixPopup::wheelEvent( TQWheelEvent *e ) -- cgit v1.2.3