diff options
| author | Calvin Morrison <calvin@pobox.com> | 2026-05-16 22:33:46 -0400 |
|---|---|---|
| committer | Calvin Morrison <calvin@pobox.com> | 2026-05-16 22:34:06 -0400 |
| commit | 857ab24280541b32fbe40c5f61b135778309ecec (patch) | |
| tree | 8f12bce828c84f4a966366ee2bf157044ca3d42a /src/model | |
| parent | b851f85e96e2a4d6da0418eec9ce68b74408d95e (diff) | |
clean ups
Diffstat (limited to 'src/model')
| -rw-r--r-- | src/model/pulsemodel.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
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; |
