From 0da3cbf5bccc08ae8be459d5a0fa40c9d5cb2c7c Mon Sep 17 00:00:00 2001 From: Alexander Zhylin Date: Thu, 26 Mar 2026 16:47:43 +0200 Subject: [PATCH] fixes key reaction after alert --- TODO.md | 6 +++--- src/widget/alert.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/TODO.md b/TODO.md index d3bfc4a..3b11ac8 100644 --- a/TODO.md +++ b/TODO.md @@ -1,13 +1,13 @@ # TODO: ## Current: -- [ ] Upload menu disappears after alert (when opening link to non-existing directory for example). - [ ] Sorting in file list -- [x] PageUp/PageDown key functionality in lists - [ ] File upload multiline description (window) -- [x] Permission checkboxes for file upload/edit - [ ] More intuitive navigation between nested groups (by pressing left and right buttons) - [ ] Cancel upload/download +- [x] PageUp/PageDown key functionality in lists +- [x] Permission checkboxes for file upload/edit +- [x] Upload menu disappears after alert (when opening link to non-existing directory for example). ## Bugs: - [ ] Sometimes segfaults while navigating through modal menu (try use controlling byte) diff --git a/src/widget/alert.c b/src/widget/alert.c index a646af5..80e7602 100644 --- a/src/widget/alert.c +++ b/src/widget/alert.c @@ -45,7 +45,7 @@ void notification(const char *title, enum dc_color_scheme color, wrefresh(d->win); int c = 0; - while ((c = wgetch(d->win))) { + while ((c = wgetch(app->win))) { if (c == '\n') break; }