Compare commits

..

No commits in common. "7c5a6c4bd4be1f258aa47626cf5cde02215adad2" and "ad5fd9116e25bc502468f4dfa884ee027887c51c" have entirely different histories.

4 changed files with 11 additions and 51 deletions

View file

@ -70,7 +70,6 @@ set shell id.
- Fixed JsonAdapter crashing and providing bad data on read when using JsonObject. - Fixed JsonAdapter crashing and providing bad data on read when using JsonObject.
- Fixed JsonAdapter sending unnecessary property changes for primitive values. - Fixed JsonAdapter sending unnecessary property changes for primitive values.
- Fixed JsonAdapter serialization for lists. - Fixed JsonAdapter serialization for lists.
- Fixed pipewire crashes after hotplugging devices and changing default outputs.
## Packaging Changes ## Packaging Changes

View file

@ -310,15 +310,10 @@ void LogManager::init(
instance->rules->append(parser.rules()); instance->rules->append(parser.rules());
} }
instance->lastCategoryFilter = QLoggingCategory::installFilter(&LogManager::filterCategory);
if (instance->lastCategoryFilter == &LogManager::filterCategory) {
qCFatal(logLogging) << "Quickshell's log filter has been installed twice. This is a bug.";
instance->lastCategoryFilter = nullptr;
}
qInstallMessageHandler(&LogManager::messageHandler); qInstallMessageHandler(&LogManager::messageHandler);
instance->lastCategoryFilter = QLoggingCategory::installFilter(&LogManager::filterCategory);
qCDebug(logLogging) << "Creating offthread logger..."; qCDebug(logLogging) << "Creating offthread logger...";
auto* thread = new QThread(); auto* thread = new QThread();
instance->threadProxy.moveToThread(thread); instance->threadProxy.moveToThread(thread);

View file

@ -64,7 +64,7 @@ QDir* QsPaths::baseRunDir() {
if (this->baseRunState == DirState::Unknown) { if (this->baseRunState == DirState::Unknown) {
auto runtimeDir = qEnvironmentVariable("XDG_RUNTIME_DIR"); auto runtimeDir = qEnvironmentVariable("XDG_RUNTIME_DIR");
if (runtimeDir.isEmpty()) { if (runtimeDir.isEmpty()) {
runtimeDir = QString("/run/user/%1").arg(getuid()); runtimeDir = QString("/run/user/$1").arg(getuid());
qCInfo(logPaths) << "XDG_RUNTIME_DIR was not set, defaulting to" << runtimeDir; qCInfo(logPaths) << "XDG_RUNTIME_DIR was not set, defaulting to" << runtimeDir;
} }

View file

@ -214,24 +214,13 @@ void PwDefaultTracker::setDefaultSink(PwNode* node) {
qCInfo(logDefaults) << "Default sink changed to" << node; qCInfo(logDefaults) << "Default sink changed to" << node;
if (this->mDefaultSink != nullptr) { if (this->mDefaultSink != nullptr) {
// Targeted disconnect is used because this can also be the default configured sink. QObject::disconnect(this->mDefaultSink, nullptr, this, nullptr);
QObject::disconnect(
this->mDefaultSink,
&PwBindableObject::destroying,
this,
&PwDefaultTracker::onDefaultSinkDestroyed
);
} }
this->mDefaultSink = node; this->mDefaultSink = node;
if (node != nullptr) { if (node != nullptr) {
QObject::connect( QObject::connect(node, &QObject::destroyed, this, &PwDefaultTracker::onDefaultSinkDestroyed);
node,
&PwBindableObject::destroying,
this,
&PwDefaultTracker::onDefaultSinkDestroyed
);
} }
emit this->defaultSinkChanged(); emit this->defaultSinkChanged();
@ -255,24 +244,13 @@ void PwDefaultTracker::setDefaultSource(PwNode* node) {
qCInfo(logDefaults) << "Default source changed to" << node; qCInfo(logDefaults) << "Default source changed to" << node;
if (this->mDefaultSource != nullptr) { if (this->mDefaultSource != nullptr) {
// Targeted disconnect is used because this can also be the default configured source. QObject::disconnect(this->mDefaultSource, nullptr, this, nullptr);
QObject::disconnect(
this->mDefaultSource,
&PwBindableObject::destroying,
this,
&PwDefaultTracker::onDefaultSourceDestroyed
);
} }
this->mDefaultSource = node; this->mDefaultSource = node;
if (node != nullptr) { if (node != nullptr) {
QObject::connect( QObject::connect(node, &QObject::destroyed, this, &PwDefaultTracker::onDefaultSourceDestroyed);
node,
&PwBindableObject::destroying,
this,
&PwDefaultTracker::onDefaultSourceDestroyed
);
} }
emit this->defaultSourceChanged(); emit this->defaultSourceChanged();
@ -296,13 +274,7 @@ void PwDefaultTracker::setDefaultConfiguredSink(PwNode* node) {
qCInfo(logDefaults) << "Default configured sink changed to" << node; qCInfo(logDefaults) << "Default configured sink changed to" << node;
if (this->mDefaultConfiguredSink != nullptr) { if (this->mDefaultConfiguredSink != nullptr) {
// Targeted disconnect is used because this can also be the default sink. QObject::disconnect(this->mDefaultConfiguredSink, nullptr, this, nullptr);
QObject::disconnect(
this->mDefaultConfiguredSink,
&PwBindableObject::destroying,
this,
&PwDefaultTracker::onDefaultConfiguredSinkDestroyed
);
} }
this->mDefaultConfiguredSink = node; this->mDefaultConfiguredSink = node;
@ -310,7 +282,7 @@ void PwDefaultTracker::setDefaultConfiguredSink(PwNode* node) {
if (node != nullptr) { if (node != nullptr) {
QObject::connect( QObject::connect(
node, node,
&PwBindableObject::destroying, &QObject::destroyed,
this, this,
&PwDefaultTracker::onDefaultConfiguredSinkDestroyed &PwDefaultTracker::onDefaultConfiguredSinkDestroyed
); );
@ -337,13 +309,7 @@ void PwDefaultTracker::setDefaultConfiguredSource(PwNode* node) {
qCInfo(logDefaults) << "Default configured source changed to" << node; qCInfo(logDefaults) << "Default configured source changed to" << node;
if (this->mDefaultConfiguredSource != nullptr) { if (this->mDefaultConfiguredSource != nullptr) {
// Targeted disconnect is used because this can also be the default source. QObject::disconnect(this->mDefaultConfiguredSource, nullptr, this, nullptr);
QObject::disconnect(
this->mDefaultConfiguredSource,
&PwBindableObject::destroying,
this,
&PwDefaultTracker::onDefaultConfiguredSourceDestroyed
);
} }
this->mDefaultConfiguredSource = node; this->mDefaultConfiguredSource = node;
@ -351,7 +317,7 @@ void PwDefaultTracker::setDefaultConfiguredSource(PwNode* node) {
if (node != nullptr) { if (node != nullptr) {
QObject::connect( QObject::connect(
node, node,
&PwBindableObject::destroying, &QObject::destroyed,
this, this,
&PwDefaultTracker::onDefaultConfiguredSourceDestroyed &PwDefaultTracker::onDefaultConfiguredSourceDestroyed
); );