commit 7f97738e676af2cf287c78933a02e87cdc54922a
parent ce7de3d9a50ea2f500573ee1db1527a3f2bc97c6
Author: bsandro <email@bsandro.tech>
Date: Wed, 11 Sep 2024 19:20:58 +0300
Reset scroll on directory change
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gui/main.c b/gui/main.c
@@ -227,7 +227,7 @@ int ButtonDialogOpenEvent(UIElement *element, UIMessage msg, int di, void *dp) {
+ filter files to only show those with .webp extension
+ (bug) displayed file name is truncated
- move the whole subroutine into a separate file
-- (bug) reset scroll on directory change
++ (bug) reset scroll on directory change
- sort filenames alphabetically
+ (bug) path and name are being concatenated during copying
- prohibit interaction with parent window
@@ -295,6 +295,7 @@ int TableEvent(UIElement *element, UIMessage msg, int di, void *dp) {
UITextboxClear(path_input, false);
UITextboxReplace(path_input, (char *)element->cp, -1, false);
UIElementRepaint(path_input, NULL);
+ UITableEnsureVisible(table, -1);
}
} else {
selected = hit;