Changeset View
Changeset View
Standalone View
Standalone View
src/SpectacleCore.cpp
Show First 20 Lines • Show All 277 Lines • ▼ Show 20 Line(s) | 277 | case StartMode::Background: | |||
---|---|---|---|---|---|
278 | showErrorMessage(i18n("Screenshot capture canceled or failed")); | 278 | showErrorMessage(i18n("Screenshot capture canceled or failed")); | ||
279 | emit allDone(); | 279 | emit allDone(); | ||
280 | return; | 280 | return; | ||
281 | case StartMode::DBus: | 281 | case StartMode::DBus: | ||
282 | emit grabFailed(); | 282 | emit grabFailed(); | ||
283 | emit allDone(); | 283 | emit allDone(); | ||
284 | return; | 284 | return; | ||
285 | case StartMode::Gui: | 285 | case StartMode::Gui: | ||
286 | mMainWindow->activateWindow(); | 286 | mMainWindow->setScreenshotAndShow(QPixmap()); | ||
287 | mMainWindow->show(); | | |||
288 | } | 287 | } | ||
289 | } | 288 | } | ||
290 | 289 | | |||
291 | void SpectacleCore::doNotify(const QUrl &theSavedAt) | 290 | void SpectacleCore::doNotify(const QUrl &theSavedAt) | ||
292 | { | 291 | { | ||
293 | KNotification *lNotify = new KNotification(QStringLiteral("newScreenshotSaved")); | 292 | KNotification *lNotify = new KNotification(QStringLiteral("newScreenshotSaved")); | ||
294 | 293 | | |||
295 | switch(ExportManager::instance()->captureMode()) { | 294 | switch(ExportManager::instance()->captureMode()) { | ||
▲ Show 20 Lines • Show All 110 Lines • Show Last 20 Lines |