Will need to test end-to-end shortly, etc...
Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 7 files). Show all
Unified · Split
| @@ -202,7 +202,13 @@ void WindowScriptingInterface::copyToClipboard(const QString& text) { · 201 unmodified lines | |||
| 202 | 202 | ||
| 203 | void WindowScriptingInterface::takeSnapshot(bool notify) { | 203 | void WindowScriptingInterface::takeSnapshot(bool notify) { |
| 204 | // only evil-doers call takeSnapshot from a random thread | 204 | // only evil-doers call takeSnapshot from a random thread |
| 205 | qApp->postLambdaEvent([&] { | 205 | qApp->postLambdaEvent([notify] { |
| 206 | qApp->takeSnapshot(notify); | 206 | qApp->takeSnapshot(notify); |
| 207 | }); | 207 | }); |
| 208 | } | 208 | } |
| 209 | |||
| 210 | void WindowScriptingInterface::shareSnapshot(const QString& path) { | ||
| 211 | qApp->postLambdaEvent([path] { | ||
| 212 | qApp->shareSnapshot(path); | ||
| 213 | }); | ||
| 214 | } | ||