Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 10 files). Show all
Unified · Split
| @@ -204,10 +204,10 @@ void WindowScriptingInterface::copyToClipboard(const QString& text) { · 203 unmodified lines | |||
| 204 | QApplication::clipboard()->setText(text); | 204 | QApplication::clipboard()->setText(text); |
| 205 | } | 205 | } |
| 206 | 206 | ||
| 207 | void WindowScriptingInterface::takeSnapshot(bool notify) { | 207 | void WindowScriptingInterface::takeSnapshot(bool notify, float aspectRatio) { |
| 208 | // only evil-doers call takeSnapshot from a random thread | 208 | // only evil-doers call takeSnapshot from a random thread |
| 209 | qApp->postLambdaEvent([notify] { | 209 | qApp->postLambdaEvent([notify, aspectRatio] { |
| 210 | qApp->takeSnapshot(notify); | 210 | qApp->takeSnapshot(notify, aspectRatio); |
| 211 | }); | 211 | }); |
| 212 | } | 212 | } |
| 213 | 213 | ||