Commit 31fd4a4d authored by Nate Graham's avatar Nate Graham
Browse files

Use correct variable to denote that ResourcesModel is done initializing

Due to somewhat confusing variable naming, we were accidentally setting
m_initializingBackends to false, when that variable actually holds the
number of backends that are still initializing. Instead we need to set
m_isInitializing to false.

This fixes a bug where the placeholder message for the MIME type screen
would fail to appear as expected, because one of the conditions in its
opacity property was `!ResourcesModel.isInitializing` and that was never
getting set to false.

BUG: 457528
FIXED-IN: 5.24.7
parent d88bc84a
......@@ -89,7 +89,7 @@ void ResourcesModel::init(bool load)
m_allInitializedEmitter->setInterval(0);
connect(m_allInitializedEmitter, &QTimer::timeout, this, [this]() {
if (m_initializingBackends == 0) {
m_initializingBackends = false;
m_isInitializing = false;
Q_EMIT allInitialized();
}
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment