mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2026-02-23 03:33:57 +11:00
all: fix lints
This commit is contained in:
parent
f78078dfaf
commit
1d94144976
15 changed files with 61 additions and 57 deletions
|
|
@ -378,7 +378,7 @@ void MprisPlayer::onPlaybackStatusUpdated() {
|
|||
|
||||
// For exceptionally bad players that update playback timestamps at an indeterminate time AFTER
|
||||
// updating playback state. (Youtube)
|
||||
QTimer::singleShot(100, this, [&]() { this->pPosition.requestUpdate(); });
|
||||
QTimer::singleShot(100, this, [this]() { this->pPosition.requestUpdate(); });
|
||||
|
||||
// For exceptionally bad players that don't update length (or other metadata) until a new track actually
|
||||
// starts playing, and then don't trigger a metadata update when they do. (Jellyfin)
|
||||
|
|
|
|||
|
|
@ -135,8 +135,8 @@ void PwDevice::polled() {
|
|||
// It is far more likely that the list content has not come in yet than it having no entries,
|
||||
// and there isn't a way to check in the case that there *aren't* actually any entries.
|
||||
if (!this->stagingIndexes.isEmpty()) {
|
||||
this->routeDeviceIndexes.removeIf([&](const std::pair<qint32, qint32>& entry) {
|
||||
if (!stagingIndexes.contains(entry.first)) {
|
||||
this->routeDeviceIndexes.removeIf([&, this](const std::pair<qint32, qint32>& entry) {
|
||||
if (!this->stagingIndexes.contains(entry.first)) {
|
||||
qCDebug(logDevice).nospace() << "Removed device/index pair [device: " << entry.first
|
||||
<< ", index: " << entry.second << "] for" << this;
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ QString UPowerDevice::address() const { return this->device ? this->device->serv
|
|||
QString UPowerDevice::path() const { return this->device ? this->device->path() : QString(); }
|
||||
|
||||
void UPowerDevice::onGetAllFinished() {
|
||||
qCDebug(logUPowerDevice) << "UPowerDevice" << device->path() << "ready.";
|
||||
qCDebug(logUPowerDevice) << "UPowerDevice" << this->device->path() << "ready.";
|
||||
this->bReady = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue