aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohno Crawford2023-11-06 00:21:34 +0100
committerJohno Crawford2023-11-06 00:21:34 +0100
commita0e30ffa692740a8f3a1df66904597fa7c8d6431 (patch)
tree317745f0b631f18f9b62675dd221d01b4c67f5eb
parentMerge branch 'gretel-actions' into trunk (diff)
downloadanduril-a0e30ffa692740a8f3a1df66904597fa7c8d6431.tar.gz
anduril-a0e30ffa692740a8f3a1df66904597fa7c8d6431.tar.bz2
anduril-a0e30ffa692740a8f3a1df66904597fa7c8d6431.zip
Fix compile error when Simple UI is undefined.
-rw-r--r--ui/anduril/channel-modes.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ui/anduril/channel-modes.c b/ui/anduril/channel-modes.c
index ccac58c..8bd746d 100644
--- a/ui/anduril/channel-modes.c
+++ b/ui/anduril/channel-modes.c
@@ -126,11 +126,14 @@ uint8_t channel_mode_state(Event event, uint16_t arg) {
if (cfg.simple_ui_active) {
return EVENT_NOT_HANDLED;
}
+ #if NUM_CHANNEL_MODES > 1
+ else
+ #endif
#endif
#if NUM_CHANNEL_MODES > 1
- // channel toggle menu on ... 9H?
- else if (event == EV_click9_hold) {
+ // channel toggle menu on ... 9H? (only if not in SIMPLE UI or if SIMPLE UI is inactive)
+ if (event == EV_click9_hold) {
push_state(channel_mode_config_state, 0);
return EVENT_HANDLED;
}
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.