@@ -531,7 +531,7 @@ class FrequencyManagerModule : public ModuleManager::Instance {
531531 ImGui::TableSetColumnIndex (0 );
532532 if (ImGui::Button ((" Import##_freq_mgr_imp_" + _this->name ).c_str (), ImVec2 (ImGui::GetContentRegionAvail ().x , 0 )) && !_this->importOpen ) {
533533 _this->importOpen = true ;
534- _this->importDialog = new pfd::open_file (" Import bookmarks" , " " , { " JSON Files (*.json)" , " *.json" , " All Files" , " *" }, true );
534+ _this->importDialog = new pfd::open_file (" Import bookmarks" , " " , { " JSON Files (*.json)" , " *.json" , " All Files" , " *" }, pfd::opt::multiselect );
535535 }
536536
537537 ImGui::TableSetColumnIndex (1 );
@@ -544,7 +544,7 @@ class FrequencyManagerModule : public ModuleManager::Instance {
544544 }
545545 config.release ();
546546 _this->exportOpen = true ;
547- _this->exportDialog = new pfd::save_file (" Export bookmarks" , " " , { " JSON Files (*.json)" , " *.json" , " All Files" , " *" }, true );
547+ _this->exportDialog = new pfd::save_file (" Export bookmarks" , " " , { " JSON Files (*.json)" , " *.json" , " All Files" , " *" });
548548 }
549549 if (selectedNames.size () == 0 && _this->selectedListName != " " ) { style::endDisabled (); }
550550 ImGui::EndTable ();
@@ -787,7 +787,7 @@ class FrequencyManagerModule : public ModuleManager::Instance {
787787
788788 void exportBookmarks (std::string path) {
789789 std::ofstream fs (path);
790- exportedBookmarks >> fs ;
790+ fs << exportedBookmarks ;
791791 fs.close ();
792792 }
793793
0 commit comments