summaryrefslogtreecommitdiff
path: root/src/scenes
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-12-01 16:53:26 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-12-01 16:53:26 +0100
commit348682e2a0b221bf3160b001683cbb98027bbde9 (patch)
tree88229954bfe66cda068485ac8728a95c273a72ad /src/scenes
parent322480fdb86f329dc05ae1683c1f15ca48fa709d (diff)
close #37
Diffstat (limited to 'src/scenes')
-rw-r--r--src/scenes/place_detail.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/scenes/place_detail.c b/src/scenes/place_detail.c
index eedd0ee..7e4b20a 100644
--- a/src/scenes/place_detail.c
+++ b/src/scenes/place_detail.c
@@ -1033,11 +1033,19 @@ static void place_detail_draw_schedule(platform_window* window)
job_offer* offer = get_job_offer_by_id(_active_location, _active_scheduling_job.offer.id);
if (offer) array_remove_by(&_active_location->job_offers, offer);
- _goto_default_detail_state();
+ if (_active_schedule_state == RESCHEDULING_JOB) {
+ _global_keyboard.take_input = false;
+ _active_schedule_state = VIEWING;
+ }
+ else _goto_default_detail_state();
}
btn_y += btn_pad + button_h;
if (button_render(scale, BUTTON_ENABLED, "Cancel", x-button_w+w, btn_y, button_w, button_h)) {
- _goto_default_detail_state();
+ if (_active_schedule_state == RESCHEDULING_JOB) {
+ _global_keyboard.take_input = false;
+ _active_schedule_state = VIEWING;
+ }
+ else _goto_default_detail_state();
}
}
else if (_active_schedule_state == VIEWING && _active_selected_scheduled_job) {