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
202202
203203 void WindowScriptingInterface::takeSnapshot(bool notify) {
204204 // only evil-doers call takeSnapshot from a random thread
205− qApp->postLambdaEvent([&] {
205+ qApp->postLambdaEvent([notify] {
206206 qApp->takeSnapshot(notify);
207207 });
208208 }
209+
210+void WindowScriptingInterface::shareSnapshot(const QString& path) {
211+ qApp->postLambdaEvent([path] {
212+ qApp->shareSnapshot(path);
213+ });
214+}