OSDN Git Service

ucm: execute SectionDefaults lately (when the first verb is set)
authorJaroslav Kysela <perex@perex.cz>
Thu, 14 May 2020 14:12:23 +0000 (16:12 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 14 May 2020 16:24:39 +0000 (18:24 +0200)
commitafb5a9cf611902dce79b58e7707ec49539c2f4aa
treeb6c357c06e7754d95813b6f36ba9a1a68d46dac7
parente0da1d2a2ab5998e50683e00c916c72d416f46a8
ucm: execute SectionDefaults lately (when the first verb is set)

We need a way to set the SectionOnce at first before SectionDefaults.
It also does not make sense to run SectionDefaults when the API is
used only to query for values or so.

Execute the SectionDefaults commands only when the first verb
is set (before the verb specific commands).

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/main.c
src/ucm/ucm_local.h