diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-08-16 11:10:29 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-08-16 11:10:29 +0200 |
| commit | 05bc81cd42c5aeff7cfb6cf6b18f88792e7c16c9 (patch) | |
| tree | 7bc9c0439507b4531ed78578e441b12cba4dda4e /src/ui/ui_main.cpp | |
| parent | f67e92f55b6223f2806c3d5ef1cbe2a638920562 (diff) | |
invoice form work
Diffstat (limited to 'src/ui/ui_main.cpp')
| -rw-r--r-- | src/ui/ui_main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/ui_main.cpp b/src/ui/ui_main.cpp index 05a98b4..b4617d1 100644 --- a/src/ui/ui_main.cpp +++ b/src/ui/ui_main.cpp @@ -16,7 +16,7 @@ typedef enum END } dashboard_view_state; -static dashboard_view_state dashboard_state = dashboard_view_state::INVOICES; +static dashboard_view_state dashboard_state = dashboard_view_state::END; void (*drawcalls[dashboard_view_state::END])(void) = { ui_draw_invoices, 0, @@ -45,6 +45,8 @@ static void set_dashboard_state(dashboard_view_state state) void ui_draw_main() { + if (dashboard_state == dashboard_view_state::END) set_dashboard_state(dashboard_view_state::INVOICES); + // @localize if (ImGui::BeginMainMenuBar()) { |
