Fixed screenshot tool

This commit is contained in:
Yousef Khadadeh 2026-04-05 15:02:26 +03:00
parent 695393392f
commit 26c9be8318
5 changed files with 52 additions and 20 deletions

View file

@ -123,7 +123,7 @@ template <typename T> class DropDown : public Element {
gui.set_post_callback_func([&, i] {
*d = i;
isOpen = false;
opts.onClick();
if(opts.onClick) opts.onClick();
});
gui.set_to_layout();
}