diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-08-09 11:18:02 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-08-09 11:18:02 +0200 |
| commit | 2cf031b91d5248561fbeff78ceccb0b2d6c73809 (patch) | |
| tree | 0fdd8d1a3aaf3f937b01d708fb334116833fdecb /src/ui/ui_projects.cpp | |
| parent | 432f24319319fe040e142059eb83279c53f90ab8 (diff) | |
refactors, working on settings view
Diffstat (limited to 'src/ui/ui_projects.cpp')
| -rw-r--r-- | src/ui/ui_projects.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ui/ui_projects.cpp b/src/ui/ui_projects.cpp index 9490254..a349814 100644 --- a/src/ui/ui_projects.cpp +++ b/src/ui/ui_projects.cpp @@ -5,11 +5,17 @@ #include "administration.hpp" #include "locales.hpp" -static view_state current_view_state = LIST; +static view_state current_view_state = view_state::LIST; static project selected_for_cancellation; static project active_project; +void ui_setup_projects() +{ + current_view_state = view_state::LIST; + memset(&active_project, 0, sizeof(contact)); +} + static void draw_project_form() { static const char* selected_country = NULL; @@ -34,7 +40,7 @@ static void draw_project_form() ImGui::SetNextItemWidth(widthAvailable*0.5f); ImGui::InputTextWithHint(localize("project.form.description"), localize("project.form.description"), active_project.description, IM_ARRAYSIZE(active_project.description)); - ImGui::SameLine();view_draw_required_tag(); + ImGui::SameLine();ui_helper_draw_required_tag(); if (viewing_only) ImGui::EndDisabled(); |
