From 857ab24280541b32fbe40c5f61b135778309ecec Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Sat, 16 May 2026 22:33:46 -0400 Subject: clean ups --- src/model/pulsemodel.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/model/pulsemodel.cpp') diff --git a/src/model/pulsemodel.cpp b/src/model/pulsemodel.cpp index 31df0ca..03ed42d 100644 --- a/src/model/pulsemodel.cpp +++ b/src/model/pulsemodel.cpp @@ -18,7 +18,7 @@ struct PAServerEvent : public TQCustomEvent { }; struct PAEvent : public TQCustomEvent { - enum Kind { DeviceAdded, DeviceRemoved, DeviceUpdated }; + enum Kind { DeviceAdded, DeviceRemoved }; Kind kind; AudioDevice::Category cat; uint32_t paIndex; @@ -90,9 +90,7 @@ static TQString paCleanAppName( const char *raw ) if ( lb != -1 && rb > lb ) s = s.mid( lb + 1, rb - lb - 1 ).stripWhiteSpace(); - // Strip trailing "app" (amarokapp → amarok), then capitalise first letter - if ( s.endsWith("app") && s.length() > 3 ) - s = s.left( s.length() - 3 ); + // capitalise first letter if ( !s.isEmpty() ) s[0] = s[0].upper(); @@ -633,7 +631,6 @@ void PulseModel::customEvent( TQCustomEvent *e ) return; } - // DeviceAdded or DeviceUpdated (both come through the same info callbacks). // For Playback streams, resolve the parent sink's monitor source name so the // level meter can attach a peak-detect stream to just this sink input. TQString monitorName = ev->monitorName; -- cgit v1.2.3