Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 2 files). Show all
Unified · Split
| @@ -205,13 +205,9 @@ void WindowScriptingInterface::copyToClipboard(const QString& text) { · 204 unmodified lines | |||
| 205 | } | 205 | } |
| 206 | 206 | ||
| 207 | void WindowScriptingInterface::takeSnapshot(bool notify, float aspectRatio) { | 207 | void WindowScriptingInterface::takeSnapshot(bool notify, float aspectRatio) { |
| 208 | qApp->postLambdaEvent([notify, aspectRatio] { | 208 | qApp->takeSnapshot(notify, aspectRatio); |
| 209 | qApp->takeSnapshot(notify, aspectRatio); | ||
| 210 | }); | ||
| 211 | } | 209 | } |
| 212 | 210 | ||
| 213 | void WindowScriptingInterface::shareSnapshot(const QString& path) { | 211 | void WindowScriptingInterface::shareSnapshot(const QString& path) { |
| 214 | qApp->postLambdaEvent([path] { | 212 | qApp->shareSnapshot(path); |
| 215 | qApp->shareSnapshot(path); | ||
| 216 | }); | ||
| 217 | } | 213 | } |