Screenshot: Fix argc count
... which I missed in my last commit, sorry for the noise.
This commit is contained in:
@@ -394,10 +394,11 @@ void
|
|||||||
ScreenshotWindow::_NewScreenshot(bool silent, bool clipboard, bool ignoreDelay)
|
ScreenshotWindow::_NewScreenshot(bool silent, bool clipboard, bool ignoreDelay)
|
||||||
{
|
{
|
||||||
BMessage message(B_ARGV_RECEIVED);
|
BMessage message(B_ARGV_RECEIVED);
|
||||||
int32 argc = 3;
|
int32 argc = 1;
|
||||||
message.AddString("argv", "screenshot");
|
message.AddString("argv", "screenshot");
|
||||||
|
|
||||||
if (!ignoreDelay) {
|
if (!ignoreDelay) {
|
||||||
|
argc += 2;
|
||||||
BString delay;
|
BString delay;
|
||||||
delay << fDelay / 1000000;
|
delay << fDelay / 1000000;
|
||||||
message.AddString("argv", "--delay");
|
message.AddString("argv", "--delay");
|
||||||
|
|||||||
Reference in New Issue
Block a user