Skip to content

StatusBar drawn on menus #772

@LeeroysHub

Description

@LeeroysHub

Describe the bug.

If Clock is enabled on desktop, it draws on power menu and up arrow shortcut menu.

I added this code to gui.c to fix.

static void gui_redraw_status_bar(Gui* gui, bool need_attention) {
ViewPortArray_it_t it;
uint8_t left_used = 0;
uint8_t right_used = 0;
uint8_t left_slim_used = 0;
uint8_t right_slim_used = 0;
uint8_t top_used = 0;
uint8_t width;

//We dont want to draw the status bar if its hidden.
if(gui->hide_statusbar_count > 0) {
    return;
}

Reproduction

  1. Enable Clock
  2. Hold back t power off and view clock!

Target

No response

Logs

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions