diff options
| author | Calvin Morrison <calvin@pobox.com> | 2026-06-09 11:29:56 -0400 |
|---|---|---|
| committer | Calvin Morrison <calvin@pobox.com> | 2026-06-09 11:29:56 -0400 |
| commit | e27c269a32ab8a25ab761d0c39edd20f350195f1 (patch) | |
| tree | 08db6cbe461506d7fbfcfdb55018082911b877e3 | |
| parent | f929977083c64263c54de43554a6cb64814caa9c (diff) | |
Show mixer would actually show devices if devices was previously opened
becuase we were only just popping the window. instead now it works like
show devices and always shows the mixer screen
Signed-off-by: Calvin Morrison <calvin@pobox.com>
| -rw-r--r-- | src/ui/mixerwindow.cpp | 15 | ||||
| -rw-r--r-- | src/ui/mixerwindow.h | 1 | ||||
| -rw-r--r-- | src/ui/tmixtray.cpp | 2 |
3 files changed, 17 insertions, 1 deletions
diff --git a/src/ui/mixerwindow.cpp b/src/ui/mixerwindow.cpp index 2bc5b4c..3311b9c 100644 --- a/src/ui/mixerwindow.cpp +++ b/src/ui/mixerwindow.cpp @@ -267,6 +267,21 @@ void MixerWindow::showDevices() bringToFront(); } +void MixerWindow::showMixer() +{ + if ( m_devicesInTabs ) { + m_outerStack->raiseWidget( 0 ); + if ( m_tabs->currentPage() == m_devicesPage ) + m_tabs->showPage( m_output.scroll ); + } else { + m_outerStack->raiseWidget( 0 ); + updateDevicesButton(); + repositionDevicesBtn(); + m_devicesBtn->raise(); + } + bringToFront(); +} + void MixerWindow::showAbout() { TDEAboutData about( diff --git a/src/ui/mixerwindow.h b/src/ui/mixerwindow.h index 170c4e8..0901099 100644 --- a/src/ui/mixerwindow.h +++ b/src/ui/mixerwindow.h @@ -42,6 +42,7 @@ signals: public slots: void bringToFront(); void showDevices(); + void showMixer(); private slots: void onDeviceAdded( AudioDevice *dev ); diff --git a/src/ui/tmixtray.cpp b/src/ui/tmixtray.cpp index c6d43c8..796cfae 100644 --- a/src/ui/tmixtray.cpp +++ b/src/ui/tmixtray.cpp @@ -250,7 +250,7 @@ void TmixTray::contextMenuAboutToShow( TDEPopupMenu *menu ) MixerWindow *win = static_cast<MixerWindow*>( parentWidget() ); menu->insertItem( SmallIcon("tmix"), i18n("&Open Mixer"), - win, TQ_SLOT(bringToFront()) ); + win, TQ_SLOT(showMixer()) ); menu->insertItem( i18n("&Open Devices"), win, TQ_SLOT(showDevices()) ); menu->insertSeparator(); |
