diff options
| author | Anders Betts <anders.betts@gmail.com> | 2026-09-23 09:34:16 +0200 |
|---|---|---|
| committer | Anders Betts <anders.betts@gmail.com> | 2026-09-23 09:34:16 +0200 |
| commit | 79b27457125dc2e259783359085021eea1d26e3a (patch) | |
| tree | e5b733b642437d34d46ee34514b093daee52fcef /clients/ui.c | |
| parent | 6159042d0cb3870e6a7c6f8d9a97e175d59e6f80 (diff) | |
| download | bokf-79b27457125dc2e259783359085021eea1d26e3a.tar.gz bokf-79b27457125dc2e259783359085021eea1d26e3a.zip | |
tui: "Byt bolag" in the main menu
Reopens the org picker (cursor on the current org) and switches the
running session: the org's name, role, current fiscal year and series
are reloaded and the remembered list selections cleared. The context
reload now clears the previous org's values first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'clients/ui.c')
| -rw-r--r-- | clients/ui.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clients/ui.c b/clients/ui.c index cda0883..2eb2dfe 100644 --- a/clients/ui.c +++ b/clients/ui.c @@ -183,6 +183,12 @@ void replace_x_into(const char *src, double x, char *dst, size_t cap) void app_refresh_context(struct app *a) { + a->org_name[0] = '\0'; + a->role[0] = '\0'; + a->fy = 0; + a->fy_label[0] = '\0'; + a->fy_start[0] = '\0'; + a->fy_end[0] = '\0'; char args[64]; snprintf(args, sizeof args, "{\"org\":%lld}", (long long)a->org); char *resp = client_rpc(&a->conn, "session.use_org", a->session, 0, args); |
