diff options
author | Mattias Andrée <m@maandree.se> | 2025-03-23 15:43:04 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-03-23 15:43:04 +0100 |
commit | c6baeaa6c016e2d4b7156019127454ef46e6e94a (patch) | |
tree | af4681c94ee40413159e9fdd11562785a34752a1 /src/config.c | |
parent | m fix (diff) | |
download | redshift-ng-c6baeaa6c016e2d4b7156019127454ef46e6e94a.tar.gz redshift-ng-c6baeaa6c016e2d4b7156019127454ef46e6e94a.tar.bz2 redshift-ng-c6baeaa6c016e2d4b7156019127454ef46e6e94a.tar.xz |
Exclude unavailable adjustment methods when listing and trying
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c index de7207d..dc6e47c 100644 --- a/src/config.c +++ b/src/config.c @@ -567,7 +567,8 @@ print_method_list(void) size_t i; printf(_("Available adjustment methods:\n")); for (i = 0; gamma_methods[i]; i++) - printf(" %s\n", gamma_methods[i]->name); + if (gamma_methods[i]->is_available()) + printf(" %s\n", gamma_methods[i]->name); printf("\n"); printf(_("Specify colon-separated options with `-m METHOD:OPTIONS'.\n")); |