Display the 'Screenshot saved' message after the screenshot saving (bug #4191)

0.6.2
Andrei Kortunov 7 years ago
parent b86118f76f
commit b277b83810

@ -607,6 +607,10 @@ public:
{ {
std::cerr << "Error: Can't write screenshot: " << result.message() << " code " << result.status() << std::endl; std::cerr << "Error: Can't write screenshot: " << result.message() << " code " << result.status() << std::endl;
} }
else
{
MWBase::Environment::get().getWindowManager()->messageBox ("Screenshot saved");
}
} }
private: private:

@ -1021,8 +1021,6 @@ namespace MWInput
{ {
mScreenCaptureHandler->setFramesToCapture(1); mScreenCaptureHandler->setFramesToCapture(1);
mScreenCaptureHandler->captureNextFrame(*mViewer); mScreenCaptureHandler->captureNextFrame(*mViewer);
MWBase::Environment::get().getWindowManager()->messageBox ("Screenshot saved");
} }
void InputManager::toggleInventory() void InputManager::toggleInventory()

Loading…
Cancel
Save