Skip to content

Commit

Permalink
Windows GUI: Use file folder and name as export default for single file
Browse files Browse the repository at this point in the history
  • Loading branch information
cjee21 committed May 28, 2024
1 parent 4324bea commit 6773504
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/GUI/VCL/GUI_Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1254,6 +1254,11 @@ void __fastcall TMainF::M_File_ExportClick(TObject *Sender)
Name=Prefs->BaseFolder;
Name.resize(Name.size()-1);
Name=Name.substr(0, Name.rfind(__T("\\"))+1); //Folder of MediaInfo

//If only one file, use folder and filename of that file
if (I->Count_Get()==1) {
Name=I->Get(0, Stream_General, 0, __T("CompleteName")).c_str();
}
}
else
Name=GUI_Text(OpenDialog1->InitialDir);
Expand Down

0 comments on commit 6773504

Please sign in to comment.