diff --git a/src/Screens/FileSelectScreen.cpp b/src/Screens/FileSelectScreen.cpp index 65a0ab8..85cdc86 100644 --- a/src/Screens/FileSelectScreen.cpp +++ b/src/Screens/FileSelectScreen.cpp @@ -492,9 +492,11 @@ void FileSelectScreen::title_bar() { } }, LayoutElement::Callbacks{ .onClick = [&](LayoutElement* l, const InputManager::MouseButtonCallbackArgs& m) { - if(!l->mouseHovering && m.down) { - moreOptionsMenu = MoreOptionsMenu::CLOSED; - main.g.gui.set_to_layout(); + if(!l->mouseHovering && !m.down) { + gui.set_post_callback_func_high_priority([&] { // Cancel actions on other buttons + moreOptionsMenu = MoreOptionsMenu::CLOSED; + main.g.gui.set_to_layout(); + }); } } });