mirror of https://github.com/odrling/Aegisub
Applied Harukalover's patch for remembering last subtitle open directory also for files opened from commandline or drag/drop, bug #722.
Originally committed to SVN as r2212.
This commit is contained in:
parent
79cb1f1bd9
commit
f5ded43d51
|
@ -633,6 +633,7 @@ void FrameMain::LoadSubtitles (wxString filename,wxString charset) {
|
||||||
wxString cur = testSubs.ReadLineFromFile();
|
wxString cur = testSubs.ReadLineFromFile();
|
||||||
if (cur.Left(10) == _T("# timecode")) {
|
if (cur.Left(10) == _T("# timecode")) {
|
||||||
LoadVFR(filename);
|
LoadVFR(filename);
|
||||||
|
Options.SetText(_T("Last open timecodes path"), fileCheck.GetPath());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -646,6 +647,7 @@ void FrameMain::LoadSubtitles (wxString filename,wxString charset) {
|
||||||
SubsBox->LoadFromAss(AssFile::top,false,true);
|
SubsBox->LoadFromAss(AssFile::top,false,true);
|
||||||
wxFileName fn(filename);
|
wxFileName fn(filename);
|
||||||
StandardPaths::SetPathValue(_T("?script"),fn.GetPath());
|
StandardPaths::SetPathValue(_T("?script"),fn.GetPath());
|
||||||
|
Options.SetText(_T("Last open subtitles path"), fn.GetPath());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
SubsBox->LoadDefault(AssFile::top);
|
SubsBox->LoadDefault(AssFile::top);
|
||||||
|
|
Loading…
Reference in New Issue