mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-11-03 03:35:05 +00:00
fix: log QQmlComponent creation error strings
This commit is contained in:
2 files changed
+6
No files matched your search
@@ -33,6 +33,7 @@ void RootWrapper::reloadGraph(bool hard) {
|
||||
SCAVENGE_PARENT = nullptr;
|
||||
|
||||
if (obj == nullptr) {
|
||||
qWarning() << component.errorString().toStdString().c_str();
|
||||
qWarning() << "failed to create root component";
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -36,5 +36,10 @@ QObject* createComponentScavengeable(
|
||||
if (instance->parent() != nullptr) instance->setParent(&parent);
|
||||
component.setInitialProperties(instance, initialProperties);
|
||||
component.completeCreate();
|
||||
|
||||
if (instance == nullptr) {
|
||||
qWarning() << component.errorString().toStdString().c_str();
|
||||
}
|
||||
|
||||
return instance;
|
||||
}
|
||||
Reference in new issue
Block a user