| commit | 36626ce6fd7a02650e8eea92bf4473f895c05f7c | [log] [tgz] |
|---|---|---|
| author | Explorer09 <explorer09@gmail.com> | Fri May 03 03:52:57 2024 +0800 |
| committer | BenBE <BenBE@geshi.org> | Wed May 22 20:55:45 2024 +0200 |
| tree | 5552085aab904f91bd9cf8950400b3dc02eecf7c | |
| parent | dee6931ec7ab85c23337c5cca6b434d69662fdbf [diff] [blame] |
Explicitly specify supported modes of all meters This reduces code size by not needing to check if 'supportedModes' is zero.
diff --git a/TasksMeter.c b/TasksMeter.c index aa41e63..fc1e4b0 100644 --- a/TasksMeter.c +++ b/TasksMeter.c
@@ -72,6 +72,7 @@ }, .updateValues = TasksMeter_updateValues, .defaultMode = TEXT_METERMODE, + .supportedModes = METERMODE_DEFAULT_SUPPORTED, .maxItems = 4, .total = 100.0, .attributes = TasksMeter_attributes,