mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-04 09:15:05 +00:00
mmg will again set the output file name for the 'first input file' method if the 'remove all' button is used.
This commit is contained in:
parent
272706ce9d
commit
d02e58868a
@ -943,8 +943,6 @@ mmg_dialog::on_file_new(wxCommandEvent &evt) {
|
|||||||
wxRemoveFile(tmp_name);
|
wxRemoveFile(tmp_name);
|
||||||
|
|
||||||
set_status_bar(wxT("Configuration cleared."));
|
set_status_bar(wxT("Configuration cleared."));
|
||||||
|
|
||||||
first_input_directory.Clear();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -1842,15 +1840,10 @@ mmg_dialog::set_output_maybe(const wxString &new_output) {
|
|||||||
output = previous_output_directory;
|
output = previous_output_directory;
|
||||||
else if (ODM_FIXED == options.output_directory_mode)
|
else if (ODM_FIXED == options.output_directory_mode)
|
||||||
output = options.output_directory;
|
output = options.output_directory;
|
||||||
else
|
|
||||||
output = first_input_directory;
|
|
||||||
|
|
||||||
if (output.IsEmpty())
|
if (output.IsEmpty())
|
||||||
output = filename.GetPath();
|
output = filename.GetPath();
|
||||||
|
|
||||||
if (first_input_directory.IsEmpty())
|
|
||||||
first_input_directory = filename.GetPath();
|
|
||||||
|
|
||||||
output += wxFileName::GetPathSeparator() + filename.GetName()
|
output += wxFileName::GetPathSeparator() + filename.GetName()
|
||||||
+ (has_video ? wxU(".mkv") : has_audio ? wxU(".mka") : wxU(".mks"));
|
+ (has_video ? wxU(".mkv") : has_audio ? wxU(".mka") : wxU(".mks"));
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ class mmg_dialog: public wxFrame {
|
|||||||
public:
|
public:
|
||||||
wxButton *b_browse_output;
|
wxButton *b_browse_output;
|
||||||
wxTextCtrl *tc_output;
|
wxTextCtrl *tc_output;
|
||||||
wxString previous_output_directory, first_input_directory;
|
wxString previous_output_directory;
|
||||||
|
|
||||||
wxString cmdline, cli_options;
|
wxString cmdline, cli_options;
|
||||||
wxArrayString clargs;
|
wxArrayString clargs;
|
||||||
|
Loading…
Reference in New Issue
Block a user