initialstart: Add null check for if kscreen config can't be fetched

This commit is contained in:
Devin Lin 2025-09-06 08:10:12 +02:00
parent 400d4c0e33
commit 339cec2b8a

View file

@ -19,6 +19,10 @@ PrepareUtil::PrepareUtil(QObject *parent)
connect(new KScreen::GetConfigOperation(), &KScreen::GetConfigOperation::finished, this, [this](auto *op) {
m_config = qobject_cast<KScreen::GetConfigOperation *>(op)->config();
if (!m_config) {
return;
}
int scaling = 100;
// to determine the scaling value: