Fix fullscreen not using the command

This commit is contained in:
ArsenArsen 2017-12-17 21:39:57 +01:00
parent 14c7a8fde4
commit 413f785375
No known key found for this signature in database
GPG Key ID: 683D2F43B0CA4BD2
1 changed files with 4 additions and 1 deletions

View File

@ -21,7 +21,10 @@ void screenshotter::area() {
}
void screenshotter::fullscreen() {
UploaderSingleton::inst().upload(utils::fullscreen(settings::settings().value("captureCursor", true).toBool()));
if (!settings::settings().value("command/fullscreenCommand", "").toString().isEmpty())
utils::externalScreenshot([](QPixmap p) { UploaderSingleton::inst().upload(p); });
else
UploaderSingleton::inst().upload(utils::fullscreen(settings::settings().value("captureCursor", true).toBool()));
}
void screenshotter::areaDelayed() {