commit 7a7f8f400c9b3846ce2acf12abc6c3f800747e65 from: Omar Polo date: Tue Oct 22 19:25:57 2024 UTC fix display of certificate selection prompt commit - 12be77f9b5fb18bdd4f4b22ebc480c6b871d9659 commit + 7a7f8f400c9b3846ce2acf12abc6c3f800747e65 blob - 9fa62ee784c9091b0b653a7c4fc5ed3d02d33521 blob + d1be335dfcb0919299d8afa13e11cc06d75f77b9 --- telescope.c +++ telescope.c @@ -380,8 +380,10 @@ handle_request_response(struct tab *tab) LU_MODE_NOCACHE); } else { /* 4x, 5x & 6x */ load_page_from_str(tab, err_pages[tab->code]); - if (tab->code >= 60) + if (tab->code >= 60) { cmd_use_certificate(&tab->buffer); + ui_force_tab_refresh(tab); + } } } blob - 91bb028d586fd63fcc4f5f69c75730c62bc9f7a0 blob + 03a330c4c616510bab12005c89b2f666f48d44b8 --- ui.c +++ ui.c @@ -1245,6 +1245,14 @@ ui_on_tab_refresh(struct tab *tab) redraw_tab(tab); else tab->flags |= TAB_URGENT; +} + +void +ui_force_tab_refresh(struct tab *tab) +{ + switch_to_tab(tab); + rearrange_windows(); + redraw_tab(tab); } void blob - d7061ea4db14f8fe650c8b087523e180da9efec8 blob + dcdf32e0055d8acd496e17843b75d331e9eb9fc3 --- ui.h +++ ui.h @@ -144,6 +144,7 @@ int ui_init(void); void ui_main_loop(void); void ui_on_tab_loaded(struct tab *); void ui_on_tab_refresh(struct tab *); +void ui_force_tab_refresh(struct tab *); void ui_on_download_refresh(void); void ui_prompt_download_cmd(struct download *); void ui_remotely_open_link(const char *);