Changeset View
Changeset View
Standalone View
Standalone View
src/SpectacleCore.cpp
Show First 20 Lines • Show All 328 Lines • ▼ Show 20 Line(s) | 328 | if (index == 0) { | |||
---|---|---|---|---|---|
329 | new KRun(theSavedAt, nullptr); | 329 | new KRun(theSavedAt, nullptr); | ||
330 | QTimer::singleShot(250, this, [this] { | 330 | QTimer::singleShot(250, this, [this] { | ||
331 | if (mStartMode != StartMode::Gui) { | 331 | if (mStartMode != StartMode::Gui) { | ||
332 | emit allDone(); | 332 | emit allDone(); | ||
333 | } | 333 | } | ||
334 | }); | 334 | }); | ||
335 | } | 335 | } | ||
336 | }); | 336 | }); | ||
337 | } | ||||
338 | | ||||
337 | connect(lNotify, &QObject::destroyed, this, [this] { | 339 | connect(lNotify, &QObject::destroyed, this, [this] { | ||
338 | if (mStartMode != StartMode::Gui) { | 340 | if (mStartMode != StartMode::Gui) { | ||
339 | emit allDone(); | 341 | emit allDone(); | ||
340 | } | 342 | } | ||
341 | }); | 343 | }); | ||
342 | } | | |||
343 | 344 | | |||
344 | lNotify->sendEvent(); | 345 | lNotify->sendEvent(); | ||
345 | } | 346 | } | ||
346 | 347 | | |||
347 | void SpectacleCore::doCopyPath(const QUrl &savedAt) | 348 | void SpectacleCore::doCopyPath(const QUrl &savedAt) | ||
348 | { | 349 | { | ||
349 | if (SpectacleConfig::instance()->copySaveLocationToClipboard()) { | 350 | if (SpectacleConfig::instance()->copySaveLocationToClipboard()) { | ||
350 | qApp->clipboard()->setText(savedAt.toLocalFile()); | 351 | qApp->clipboard()->setText(savedAt.toLocalFile()); | ||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |