mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2026-04-10 06:11:54 +10:00
Compare commits
No commits in common. "7c5a6c4bd4be1f258aa47626cf5cde02215adad2" and "ad5fd9116e25bc502468f4dfa884ee027887c51c" have entirely different histories.
7c5a6c4bd4
...
ad5fd9116e
4 changed files with 11 additions and 51 deletions
|
|
@ -70,7 +70,6 @@ set shell id.
|
|||
- Fixed JsonAdapter crashing and providing bad data on read when using JsonObject.
|
||||
- Fixed JsonAdapter sending unnecessary property changes for primitive values.
|
||||
- Fixed JsonAdapter serialization for lists.
|
||||
- Fixed pipewire crashes after hotplugging devices and changing default outputs.
|
||||
|
||||
## Packaging Changes
|
||||
|
||||
|
|
|
|||
|
|
@ -310,15 +310,10 @@ void LogManager::init(
|
|||
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);
|
||||
|
||||
instance->lastCategoryFilter = QLoggingCategory::installFilter(&LogManager::filterCategory);
|
||||
|
||||
qCDebug(logLogging) << "Creating offthread logger...";
|
||||
auto* thread = new QThread();
|
||||
instance->threadProxy.moveToThread(thread);
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ QDir* QsPaths::baseRunDir() {
|
|||
if (this->baseRunState == DirState::Unknown) {
|
||||
auto runtimeDir = qEnvironmentVariable("XDG_RUNTIME_DIR");
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -214,24 +214,13 @@ void PwDefaultTracker::setDefaultSink(PwNode* node) {
|
|||
qCInfo(logDefaults) << "Default sink changed to" << node;
|
||||
|
||||
if (this->mDefaultSink != nullptr) {
|
||||
// Targeted disconnect is used because this can also be the default configured sink.
|
||||
QObject::disconnect(
|
||||
this->mDefaultSink,
|
||||
&PwBindableObject::destroying,
|
||||
this,
|
||||
&PwDefaultTracker::onDefaultSinkDestroyed
|
||||
);
|
||||
QObject::disconnect(this->mDefaultSink, nullptr, this, nullptr);
|
||||
}
|
||||
|
||||
this->mDefaultSink = node;
|
||||
|
||||
if (node != nullptr) {
|
||||
QObject::connect(
|
||||
node,
|
||||
&PwBindableObject::destroying,
|
||||
this,
|
||||
&PwDefaultTracker::onDefaultSinkDestroyed
|
||||
);
|
||||
QObject::connect(node, &QObject::destroyed, this, &PwDefaultTracker::onDefaultSinkDestroyed);
|
||||
}
|
||||
|
||||
emit this->defaultSinkChanged();
|
||||
|
|
@ -255,24 +244,13 @@ void PwDefaultTracker::setDefaultSource(PwNode* node) {
|
|||
qCInfo(logDefaults) << "Default source changed to" << node;
|
||||
|
||||
if (this->mDefaultSource != nullptr) {
|
||||
// Targeted disconnect is used because this can also be the default configured source.
|
||||
QObject::disconnect(
|
||||
this->mDefaultSource,
|
||||
&PwBindableObject::destroying,
|
||||
this,
|
||||
&PwDefaultTracker::onDefaultSourceDestroyed
|
||||
);
|
||||
QObject::disconnect(this->mDefaultSource, nullptr, this, nullptr);
|
||||
}
|
||||
|
||||
this->mDefaultSource = node;
|
||||
|
||||
if (node != nullptr) {
|
||||
QObject::connect(
|
||||
node,
|
||||
&PwBindableObject::destroying,
|
||||
this,
|
||||
&PwDefaultTracker::onDefaultSourceDestroyed
|
||||
);
|
||||
QObject::connect(node, &QObject::destroyed, this, &PwDefaultTracker::onDefaultSourceDestroyed);
|
||||
}
|
||||
|
||||
emit this->defaultSourceChanged();
|
||||
|
|
@ -296,13 +274,7 @@ void PwDefaultTracker::setDefaultConfiguredSink(PwNode* node) {
|
|||
qCInfo(logDefaults) << "Default configured sink changed to" << node;
|
||||
|
||||
if (this->mDefaultConfiguredSink != nullptr) {
|
||||
// Targeted disconnect is used because this can also be the default sink.
|
||||
QObject::disconnect(
|
||||
this->mDefaultConfiguredSink,
|
||||
&PwBindableObject::destroying,
|
||||
this,
|
||||
&PwDefaultTracker::onDefaultConfiguredSinkDestroyed
|
||||
);
|
||||
QObject::disconnect(this->mDefaultConfiguredSink, nullptr, this, nullptr);
|
||||
}
|
||||
|
||||
this->mDefaultConfiguredSink = node;
|
||||
|
|
@ -310,7 +282,7 @@ void PwDefaultTracker::setDefaultConfiguredSink(PwNode* node) {
|
|||
if (node != nullptr) {
|
||||
QObject::connect(
|
||||
node,
|
||||
&PwBindableObject::destroying,
|
||||
&QObject::destroyed,
|
||||
this,
|
||||
&PwDefaultTracker::onDefaultConfiguredSinkDestroyed
|
||||
);
|
||||
|
|
@ -337,13 +309,7 @@ void PwDefaultTracker::setDefaultConfiguredSource(PwNode* node) {
|
|||
qCInfo(logDefaults) << "Default configured source changed to" << node;
|
||||
|
||||
if (this->mDefaultConfiguredSource != nullptr) {
|
||||
// Targeted disconnect is used because this can also be the default source.
|
||||
QObject::disconnect(
|
||||
this->mDefaultConfiguredSource,
|
||||
&PwBindableObject::destroying,
|
||||
this,
|
||||
&PwDefaultTracker::onDefaultConfiguredSourceDestroyed
|
||||
);
|
||||
QObject::disconnect(this->mDefaultConfiguredSource, nullptr, this, nullptr);
|
||||
}
|
||||
|
||||
this->mDefaultConfiguredSource = node;
|
||||
|
|
@ -351,7 +317,7 @@ void PwDefaultTracker::setDefaultConfiguredSource(PwNode* node) {
|
|||
if (node != nullptr) {
|
||||
QObject::connect(
|
||||
node,
|
||||
&PwBindableObject::destroying,
|
||||
&QObject::destroyed,
|
||||
this,
|
||||
&PwDefaultTracker::onDefaultConfiguredSourceDestroyed
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue