From c01351d008d0e3d3703ccb90d52c022f62b23eb6 Mon Sep 17 00:00:00 2001 From: Mr-Wiseguy Date: Sun, 22 Jun 2025 15:58:32 -0400 Subject: [PATCH] Automatically open mods menu when dragging a mod which also prevents issues when installing a mod from the launcher menu --- src/ui/ui_state.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ui/ui_state.cpp b/src/ui/ui_state.cpp index d1201fb..1941c5c 100644 --- a/src/ui/ui_state.cpp +++ b/src/ui/ui_state.cpp @@ -900,6 +900,13 @@ void recompui::drop_files(const std::list &file_list) { return; } + recompui::set_config_tab(recompui::ConfigTab::Mods); + // If the config menu isn't open, open it in the mods tab. + if (!recompui::is_context_shown(recompui::get_config_context_id())) { + recompui::hide_all_contexts(); + recompui::show_context(recompui::get_config_context_id(), ""); + } + recompui::open_notification("Installing Mods", "Please Wait"); // TODO: Needs a progress callback and a prompt for every mod that needs to be confirmed to be overwritten. // TODO: Run this on a background thread and use the callbacks to advance the state instead of blocking.