diff options
| author | Calvin Morrison <calvin@pobox.com> | 2026-05-22 10:16:15 -0400 |
|---|---|---|
| committer | Calvin Morrison <calvin@pobox.com> | 2026-05-22 10:16:15 -0400 |
| commit | cdf72828e599a63fca4a0f1ceeb3145fba581aa3 (patch) | |
| tree | 16ee02f0ce1e317a09fd4c2a3f9fbdc04aadfe60 /src/ui/devicewidget.cpp | |
| parent | b30b234afa3ec18156e432b9f2a7ad2ca80cc672 (diff) | |
| parent | d9876849f0208291cc7010522e85593703ff52bd (diff) | |
Merge branch 'and-the-oss-you-rode-in-on'
Diffstat (limited to 'src/ui/devicewidget.cpp')
| -rw-r--r-- | src/ui/devicewidget.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/devicewidget.cpp b/src/ui/devicewidget.cpp index f7ac79a..645ffaa 100644 --- a/src/ui/devicewidget.cpp +++ b/src/ui/devicewidget.cpp @@ -178,7 +178,8 @@ DeviceWidget::DeviceWidget( AudioDevice *device, PulseModel *model, TQWidget *pa // Red recording-active LED — Input only, shows when a stream is capturing if ( device->category() == AudioDevice::Input ) { - m_recordingLed = new KLed( TQt::red, KLed::Off, KLed::Raised, KLed::Circular, bottomWidget ); + KLed::State initState = device->recordingActive() ? KLed::On : KLed::Off; + m_recordingLed = new KLed( TQt::red, initState, KLed::Raised, KLed::Circular, bottomWidget ); m_recordingLed->setFixedSize( 16, 16 ); TQToolTip::add( m_recordingLed, i18n("Microphone in use") ); connect( device, TQ_SIGNAL(recordingActiveChanged(bool)), @@ -291,7 +292,7 @@ void DeviceWidget::onDeviceName( const TQString &name ) void DeviceWidget::wheelEvent( TQWheelEvent *e ) { TDEConfig *cfg = TDEGlobal::config(); - cfg->setGroup("General"); + cfg->setGroup("Tray"); int step = cfg->readNumEntry("ScrollStep", 5); int delta = e->delta() > 0 ? step : -step; int vol = TQMAX( 0, TQMIN( 100, m_device->volume() + delta ) ); |
