Commit c88c14ae authored by Cosimo Cecchi's avatar Cosimo Cecchi

screenshot: cleanup initial delay handling

parent 326f5e4b
......@@ -685,9 +685,8 @@ main (int argc, char *argv[])
}
}
if (((screenshot_config->delay > 0 && interactive_arg) || delay_arg > 0) &&
!screenshot_config->take_area_shot)
{
if (screenshot_config->delay > 0)
{
g_timeout_add (screenshot_config->delay * 1000,
prepare_screenshot_timeout,
NULL);
......
......@@ -79,6 +79,13 @@ screenshot_load_config (gboolean clipboard_arg,
return FALSE;
}
if (delay_arg && area_arg)
{
g_printerr (_("Conflicting options: --area and --delay should not be "
"used at the same time.\n"));
return FALSE;
}
config = g_slice_new0 (ScreenshotConfig);
initialized = TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment