Changeset View
Changeset View
Standalone View
Standalone View
kded/osdmanager.cpp
Show First 20 Lines • Show All 145 Lines • ▼ Show 20 Line(s) | 141 | connect(action, &OsdActionImpl::selected, | |||
---|---|---|---|---|---|
146 | }); | 146 | }); | ||
147 | connect(new KScreen::GetConfigOperation(), &KScreen::GetConfigOperation::finished, | 147 | connect(new KScreen::GetConfigOperation(), &KScreen::GetConfigOperation::finished, | ||
148 | this, [this, action](const KScreen::ConfigOperation *op) { | 148 | this, [this, action](const KScreen::ConfigOperation *op) { | ||
149 | if (op->hasError()) { | 149 | if (op->hasError()) { | ||
150 | qCWarning(KSCREEN_KDED) << op->errorString(); | 150 | qCWarning(KSCREEN_KDED) << op->errorString(); | ||
151 | return; | 151 | return; | ||
152 | } | 152 | } | ||
153 | 153 | | |||
154 | // Show selector on alll enabled screens | 154 | // Show selector on all enabled screens | ||
155 | const auto outputs = op->config()->outputs(); | 155 | const auto outputs = op->config()->outputs(); | ||
156 | KScreen::OutputPtr osdOutput; | 156 | KScreen::OutputPtr osdOutput; | ||
157 | for (const auto &output : outputs) { | 157 | for (const auto &output : outputs) { | ||
158 | if (!output->isConnected() || !output->isEnabled() || !output->currentMode()) { | 158 | if (!output->isConnected() || !output->isEnabled() || !output->currentMode()) { | ||
159 | continue; | 159 | continue; | ||
160 | } | 160 | } | ||
161 | 161 | | |||
162 | // Prefer laptop screen | 162 | // Prefer laptop screen | ||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |