Dev mode now always display bottom status message

Author Mitja Felicijan <mitja.felicijan@gmail.com> 2026-01-26 13:24:22 +0100
Committer Mitja Felicijan <mitja.felicijan@gmail.com> 2026-01-26 13:24:22 +0100
Commit f7654de715e263554891dbe347368e43d6ab3175 (patch)
-rw-r--r-- main.c 10
1 files changed, 7 insertions, 3 deletions
diff --git a/main.c b/main.c
...
201
	draw_categories(state);
201
	draw_categories(state);
202
	draw_apps_list(state);
202
	draw_apps_list(state);
203
  
203
  
204
	if (state->message[0] != '\0') {
204
	if (state->message[0] != '\0' || state->is_dev_mode) {
205
		uint16_t msg_col = COLOR_SUCCESS;
205
		uint16_t msg_col = COLOR_SUCCESS;
206
		if (strncmp(state->message, "Failed", 6) == 0) {
206
		const char *msg = state->message;
  
207
		if (state->message[0] == '\0' && state->is_dev_mode) {
  
208
			msg = "Developer Mode";
  
209
		}
  
210
		if (strncmp(msg, "Failed", 6) == 0) {
207
			msg_col = COLOR_ERROR;
211
			msg_col = COLOR_ERROR;
208
		}
212
		}
209
		tb_print(X_OFF_CATEGORIES, tb_height() - 1, msg_col, COLOR_BG, state->message);
213
		tb_print(X_OFF_CATEGORIES, tb_height() - 1, msg_col, COLOR_BG, msg);
210
	}
214
	}
211
  
215
  
212
	tb_present();
216
	tb_present();
...