diff options
author | pommicket <pommicket@gmail.com> | 2023-08-01 13:00:21 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-08-01 13:00:21 -0400 |
commit | 2db69f3bf6b9d086a364db76e677cf22874c90e8 (patch) | |
tree | f46d6562dded0b1ef1e2cc926ff22d10951f239f /main.c | |
parent | 7c5ca21fdd5fb3448376e9491528487ddb5db076 (diff) |
don't show version, help message when build window is open
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -1011,12 +1011,14 @@ int main(int argc, char **argv) { usages_frame(ted); } else { autocomplete_close(ted); - text_utf8_anchored(font, "ted v. " TED_VERSION, - window_width - padding, window_height - padding, - ted_active_color(ted, COLOR_COMMENT), ANCHOR_BOTTOM_RIGHT); - text_utf8_anchored(font, "Press Ctrl+O to open a file or Ctrl+N to create a new one.", - window_width * 0.5f, window_height * 0.5f, ted_active_color(ted, COLOR_COMMENT), ANCHOR_MIDDLE); - text_render(font); + if (!ted->build_shown) { + text_utf8_anchored(font, "ted v. " TED_VERSION, + window_width - padding, window_height - padding, + ted_active_color(ted, COLOR_COMMENT), ANCHOR_BOTTOM_RIGHT); + text_utf8_anchored(font, "Press Ctrl+O to open a file or Ctrl+N to create a new one.", + window_width * 0.5f, window_height * 0.5f, ted_active_color(ted, COLOR_COMMENT), ANCHOR_MIDDLE); + text_render(font); + } } } |