History

First cut of a snapshot uploader

Will need to test end-to-end shortly, etc...

David Kelly committed 10 years ago

Commit c8f3a891 parent e0973f37 files · +126 −2Browse files

Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 7 files). Show all

Unified · Split

interface/src/scripting/WindowScriptingInterface.cpp+7−1
@@ -202,7 +202,13 @@ void WindowScriptingInterface::copyToClipboard(const QString& text) { · 201 unmodified lines
202 202
203void WindowScriptingInterface::takeSnapshot(bool notify) {203void WindowScriptingInterface::takeSnapshot(bool notify) {
204 // only evil-doers call takeSnapshot from a random thread204 // 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
210void WindowScriptingInterface::shareSnapshot(const QString& path) {
211 qApp->postLambdaEvent([path] {
212 qApp->shareSnapshot(path);
213 });
214}