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/Application.cpp (1 of 7 files). Show all

Unified · Split

interface/src/Application.cpp+5−0
@@ -5082,6 +5082,11 @@ void Application::takeSnapshot(bool notify) { · 5081 unmodified lines
5082 emit DependencyManager::get<WindowScriptingInterface>()->snapshotTaken(path, notify);5082 emit DependencyManager::get<WindowScriptingInterface>()->snapshotTaken(path, notify);
5083}5083}
5084 5084
5085void Application::shareSnapshot(const QString& path) {
5086 // not much to do here, everything is done in snapshot code...
5087 Snapshot::uploadSnapshot(path);
5088}
5089
5085float Application::getRenderResolutionScale() const {5090float Application::getRenderResolutionScale() const {
5086 if (Menu::getInstance()->isOptionChecked(MenuOption::RenderResolutionOne)) {5091 if (Menu::getInstance()->isOptionChecked(MenuOption::RenderResolutionOne)) {
5087 return 1.0f;5092 return 1.0f;