mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
initialstart: Add null check for if kscreen config can't be fetched
This commit is contained in:
parent
400d4c0e33
commit
339cec2b8a
1 changed files with 4 additions and 0 deletions
|
|
@ -19,6 +19,10 @@ PrepareUtil::PrepareUtil(QObject *parent)
|
||||||
connect(new KScreen::GetConfigOperation(), &KScreen::GetConfigOperation::finished, this, [this](auto *op) {
|
connect(new KScreen::GetConfigOperation(), &KScreen::GetConfigOperation::finished, this, [this](auto *op) {
|
||||||
m_config = qobject_cast<KScreen::GetConfigOperation *>(op)->config();
|
m_config = qobject_cast<KScreen::GetConfigOperation *>(op)->config();
|
||||||
|
|
||||||
|
if (!m_config) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
int scaling = 100;
|
int scaling = 100;
|
||||||
|
|
||||||
// to determine the scaling value:
|
// to determine the scaling value:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue