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 | 207 | void WindowScriptingInterface::takeSnapshot(bool notify, float aspectRatio) { |
| 208 | − qApp->postLambdaEvent([notify, aspectRatio] { | |
| 209 | − qApp->takeSnapshot(notify, aspectRatio); | |
| 210 | − }); | |
| 208 | + qApp->takeSnapshot(notify, aspectRatio); | |
| 211 | 209 | } |
| 212 | 210 | |
| 213 | 211 | void WindowScriptingInterface::shareSnapshot(const QString& path) { |
| 214 | − qApp->postLambdaEvent([path] { | |
| 215 | − qApp->shareSnapshot(path); | |
| 216 | − }); | |
| 212 | + qApp->shareSnapshot(path); | |
| 217 | 213 | } |