prefs: Invert if statement condition
Mimic what we already do for the locate-pointer. There is no need for an empty "then" branch. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4050>
This commit is contained in:
parent
b7d533c301
commit
10d0ed65aa
@ -1476,9 +1476,7 @@ overlay_key_handler (GVariant *value,
|
|||||||
*result = NULL; /* ignored */
|
*result = NULL; /* ignored */
|
||||||
string_value = g_variant_get_string (value, NULL);
|
string_value = g_variant_get_string (value, NULL);
|
||||||
|
|
||||||
if (string_value && meta_parse_accelerator (string_value, &combo))
|
if (!string_value || !meta_parse_accelerator (string_value, &combo))
|
||||||
;
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
meta_topic (META_DEBUG_KEYBINDINGS,
|
meta_topic (META_DEBUG_KEYBINDINGS,
|
||||||
"Failed to parse value for overlay-key");
|
"Failed to parse value for overlay-key");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user