mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp
synced 2026-05-26 15:46:17 -04:00
Use a multiple file select dialog for mod install button
This commit is contained in:
@@ -243,11 +243,11 @@ void ModMenu::open_mods_folder() {
|
||||
}
|
||||
|
||||
void ModMenu::open_install_dialog() {
|
||||
zelda64::open_file_dialog([](bool success, const std::filesystem::path& path) {
|
||||
zelda64::open_file_dialog_multiple([](bool success, const std::list<std::filesystem::path>& paths) {
|
||||
if (success) {
|
||||
ContextId old_context = recompui::try_close_current_context();
|
||||
|
||||
recompui::drop_files({ path });
|
||||
recompui::drop_files(paths);
|
||||
|
||||
if (old_context != ContextId::null()) {
|
||||
old_context.open();
|
||||
|
||||
Reference in New Issue
Block a user