Compare commits
3 Commits
v0.8.2
...
290b9344d2
| Author | SHA1 | Date | |
|---|---|---|---|
| 290b9344d2 | |||
| 24e4528b4c | |||
| 15b0344dc8 |
+3
-1
@@ -98,9 +98,11 @@ void komens_menu() {
|
||||
komens_page(
|
||||
static_cast<koment_type>(item_index(current_item(komens_menu.menu))));
|
||||
current_allocated = &komens_menu_allocated;
|
||||
clear();
|
||||
pos_menu_cursor(komens_menu.menu);
|
||||
refresh();
|
||||
wrefresh(komens_menu.win);
|
||||
refresh();
|
||||
redrawwin(komens_menu.win);
|
||||
break;
|
||||
}
|
||||
wrefresh(komens_menu.win);
|
||||
|
||||
@@ -38,6 +38,7 @@ void win_show(WINDOW *win, const wchar_t *label, const int label_color,
|
||||
|
||||
void marks_page() {
|
||||
current_allocated = &marks_allocated;
|
||||
curs_set(0);
|
||||
|
||||
// thanks to lambda i can make this const
|
||||
const json resp_from_api = [&]() -> json {
|
||||
@@ -132,6 +133,7 @@ void marks_page() {
|
||||
endwin();
|
||||
clear();
|
||||
delete_all(&marks_allocated);
|
||||
curs_set(1);
|
||||
}
|
||||
|
||||
/* Put all the windows */
|
||||
|
||||
@@ -187,7 +187,13 @@ void refresh_access_token() {
|
||||
if (http_code != 200) {
|
||||
std::cerr << RED "[ERROR] " << RESET << http_code
|
||||
<< "is non 200 response\n";
|
||||
def_prog_mode();
|
||||
endwin();
|
||||
get_input_and_login();
|
||||
reset_prog_mode();
|
||||
refresh();
|
||||
doupdate();
|
||||
return;
|
||||
}
|
||||
|
||||
SoRAuthFile(true, response);
|
||||
|
||||
Reference in New Issue
Block a user