forked from mia/Aegisub
Use a save file dialog when extracting attachments rather than an open one
Originally committed to SVN as r6705.
This commit is contained in:
parent
8a03e3a374
commit
c28f262ec4
1 changed files with 8 additions and 1 deletions
|
@ -187,7 +187,14 @@ void DialogAttachments::OnExtract(wxCommandEvent &) {
|
|||
else {
|
||||
// Default path
|
||||
wxString defPath = ((AssAttachment*)wxUIntToPtr(listView->GetItemData(i)))->GetFileName();
|
||||
path = wxFileSelector(_("Select the path to save the file to:"),lagi_wxString(OPT_GET("Path/Fonts Collector Destination")->GetString()),defPath);
|
||||
path = wxFileSelector(
|
||||
_("Select the path to save the file to:"),
|
||||
lagi_wxString(OPT_GET("Path/Fonts Collector Destination")->GetString()),
|
||||
defPath,
|
||||
".ttf",
|
||||
"Font Files (*.ttf)|*.ttf",
|
||||
wxFD_SAVE | wxFD_OVERWRITE_PROMPT,
|
||||
this);
|
||||
fullPath = true;
|
||||
}
|
||||
if (!path) return;
|
||||
|
|
Loading…
Reference in a new issue